有什么方法可以使用 传递密码.ssh/config吗?我正在尝试设置一种以特定用户登录服务器的方法,然后在连接时自动切换到root(需要输入密码)。
.ssh/config
现在,我有:
Host server HostName hostname.server.com User not-root Port 1234 RemoteCommand su
ssh ssh-agent
ssh ×1
ssh-agent ×1