我有一个可以通过 ssh 连接到本地主机的帐户:
$ ssh root@localhost
# logout
Connection to localhost closed.
Run Code Online (Sandbox Code Playgroud)
但是,它不适用于 ssh 的 JumpProxy 功能:
$ ssh -J root@localhost root@localhost
/sbin/nologin: invalid option -- 'c'
Usage:
nologin [options]
Politely refuse a login.
Options:
-h, --help display this help and exit
-V, --version output version information and exit
For more details see nologin(8).
ssh_exchange_identification: Connection closed by remote host
Run Code Online (Sandbox Code Playgroud)
这似乎与当前用户的 shell 设置为 /sbin/nologin 的事实有关——如果我暂时将其更改为 bash 命令有效。为不需要的用户禁用 shell 访问似乎是最佳实践——但是(为什么???)JumpProxy 需要它吗?
我有一种感觉,我无法修改 bindfs 上符号链接的日期。请参阅以下我尝试过的记录。
在 EXT4 上:
nailor@needle:~$ mkdir /tmp/ex
nailor@needle:~$ cd /tmp/ex
nailor@needle:/tmp/ex$ touch realfile
nailor@needle:/tmp/ex$ ln -s realfile linkfile
nailor@needle:/tmp/ex$ stat realfile linkfile
File: `realfile'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 801h/2049d Inode: 22678377 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ nailor) Gid: ( 1000/ nailor)
Access: 2013-09-09 00:46:15.356004837 +0200
Modify: 2013-09-09 00:46:15.356004837 +0200
Change: 2013-09-09 00:46:15.356004837 +0200
Birth: -
File: `linkfile' -> `realfile'
Size: 8 Blocks: 0 IO Block: 4096 symbolic link
Device: …
Run Code Online (Sandbox Code Playgroud)