gpt4 book ai didi

linux - Windows 10 ubuntu linux bash sshpass获取伪终端失败

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:24:37 36 4
gpt4 key购买 nike

有没有人尝试过在 Windows 10 Insider Preview Linux 终端中使用 sshpass?

它只是返回这个错误

 root@T430U:~# sshpass -p mypass ssh user@host

Failed to get a pseudo terminal: No such file or directory

最佳答案

就像它说的here .您必须挂载 pts 目录:

m -rf /dev/ptmx
mknod /dev/ptmx c 5 2
chmod 666 /dev/ptmx
umount /dev/pts
rm -rf /dev/pts
mkdir /dev/pts
vim /etc/fstab
(added: none /dev/pts devpts defaults 0 0)
mount /dev/pts

关于linux - Windows 10 ubuntu linux bash sshpass获取伪终端失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37422083/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com