【发布时间】:2020-06-10 03:49:47
【问题描述】:
我将我的authorized_keys 配置为:
from="192.168.1.*",restrict ssh-rsa AAAA***
tty 受到限制,但远程用户仍然可以在我这边运行命令:
(注意标记为<<<<<<。这些是我输入的命令)
$ ssh kes
PTY allocation request failed on channel 0
No mail.
asdf <<<<<<
-bash: line 1: asdf: command not found
ls <<<<<<
bin
work
x
: > test <<<<<<
echo "sdf" > test2 <<<<<<
cat test2 <<<<<<
sdf
为什么连接仍然是交互式的?
【问题讨论】: