有没有人尝试在Windows 10内幕预览linux终端中使用sshpass?
它只返回此错误
root@T430U:~# sshpass -p mypass ssh user@host
Failed to get a pseudo terminal: No such file or directory
答案 0 :(得分:0)
就像它说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