有没有人尝试在 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
有没有人尝试在 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
就像这里所说的那样。您必须挂载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