Pel*_*ier 17 linux ssh unix command-line openssh
有没有办法完全禁用密码身份验证?命令行如下:
ssh -o KbdInteractiveAuthentication=no -o PasswordAuthentication=no machine"
Run Code Online (Sandbox Code Playgroud)
它仍然要求输入密码。当然,如果可能的话,我想在不接触服务器的情况下做到这一点。
Pel*_*ier 24
好的,我找到了!它是
ssh -o BatchMode=yes host
Run Code Online (Sandbox Code Playgroud)
不是很直观,尤其是我之前尝试过的选项不起作用。
| 归档时间: |
|
| 查看次数: |
11653 次 |
| 最近记录: |