linux - sshfs 没有密码无法访问符号链接(symbolic link)

标签 linux passwords debian symlink sshfs

我试图在我的计算机的家中(在 Debian Jessie 下)为我在学校的远程 session 创建一个目录。 我不想使用任何密码,我想做“cd work”并查看我的远程 session 。

所以我查看了 sshfs 的手册,它在目录中安装了一个 ssh session 。 然后我发现没有遵循符号链接(symbolic link)。 所以我使用了选项“-o follow_symlinks”并且效果很好。

为了在工作时无需密码即可连接,我创建了一个 ssh 公钥和私钥(使用 ssh-keygen),然后将其发送到服务器(使用 ssh-copy-编号)。当我尝试连接 ssh 时,服务器不要求输入密码。 但是,当我尝试将此 key 与 sshfs 一起使用时,服务器不要求输入密码,但所有符号链接(symbolic link)都已损坏 !!

[16-05-17 19:47]ShellCode-Pc:/tmp/test shellcode) ls
ls: cannot access Music: No such file or directory
ls: cannot access VMs: No such file or directory
ls: cannot access Documents: No such file or directory
ls: cannot access Desktop-Windows: No such file or directory
ls: cannot access Videos: No such file or directory
ls: cannot access Bibliotheque: No such file or directory
ls: cannot access Rushes: No such file or directory
ls: cannot access Downloads: No such file or directory
ls: cannot access Pictures: No such file or directory
ls: cannot access ISOs: No such file or directory
Bibliotheque  boost_1_60_0  boost_1_60_0.tar.gz  Desktop-Windows  Documents  Downloads  ISOs  Music  Pictures  Remise  Rushes  Videos  VMs  Wallpapers  Www 
[16-05-17 19:48]ShellCode-Pc:/tmp/test shellcode) 

这里的boost_1_60_0 之类的主文件夹是可以的,但符号链接(symbolic link)不是...我只是不明白为什么。有人对此有答案吗? :)

最佳答案

您可能希望使用 -o transform_symlinks 而不是 -o follow_symlinks

关于linux - sshfs 没有密码无法访问符号链接(symbolic link),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37283238/

相关文章:

linux - 在 Linux 上使用 Apache 设置子域

linux - SCP 命令不起作用 - 需要将文件从 Windows 本地主机复制到 Linux

linux - USB key 插入时自动启动程序

ruby-on-rails - BCrypt 无效哈希 : Can't create an admin user

linux - UP 键事件上的肉桂输入语言更改

php - 你知道 php 警告 startup unable to load dynamic library http.so 指的是什么吗?

python - 在python中隐藏密码输入输入

php - php/mysql 环境中的 "forgot user password"标准类或脚本?

linux - debian 终端无法更改为 su

调用 open(2) 会忽略 S_IWGRP 和 S_IWOTH 标志