分页: 1 / 1

在sshfs中如何处理转义字符

发表于 : 2017-08-03 12:41
1003518805
例如密码是 \qweasd\

sshfs -o ssh_command="sshpass -p \\qweasd\\ ssh" -o reconnect user@server:/path /mountpath -d -o sshfs_debug




提示
executing <sshpass> <-p> <qweasd> <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-2> <user@server> <-s> <sftp>
Permission denied, please try again.
read: Connection reset by peer


以下方法均无效
sshfs -o ssh_command="sshpass -p '\qweasd\' ssh" -o reconnect user@server:/path /mountpath -d -o sshfs_debug
sshfs -o ssh_command='sshpass -p \qweasd\ ssh' -o reconnect user@server:/path /mountpath -d -o sshfs_debug