sshpass在Windows 10 ubuntu linux bash中无法获得伪终端

时间:2016-05-24 19:18:33

标签: linux bash ubuntu-14.04 windows-10 windows-subsystem-for-linux

有没有人尝试在Windows 10内幕预览linux终端中使用sshpass?

它只返回此错误

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

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

1 个答案:

答案 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