我正在尝试使用提供的用户名和密码进行 ssh。
限制:
1. 我不想为我试图通过 ssh 连接的每台服务器设置一个公钥。
2. 我不想/无权安装 sshpass 工具。
尝试:
echo examplePassword | ssh exampleUser@exampleServer
ssh exampleUser@exampleServer < password.txt (contains password)
Run Code Online (Sandbox Code Playgroud)