我有一个使用ubuntu14.04的VM。在窗户上跑。如果我使用VM桌面上的终端,我可以使用注册的SSH密钥连接到我的服务器,而不需要密码。
当我使用ssh客户端从窗口连接到VM时,我无法在没有密码的情况下登录服务器。
Linux(VM) ---> Server | Authentication with SSH keys works
SSH session ---> Linux(VM) ---> Server | Ask for the server password.
当我远程连接时,它如何使用在VM中注册的SSH密钥?
我试图使用python和paramiko自动部署linux服务器。问题是,当我第一次连接这个定制的Linux操作系统时,它会为它的初始"installer“请求参数。
在设置这些参数之前,不能对服务器执行任何操作。第一个参数是设置一个新密码,您将从终端得到提示,如下所示。
*WARNING: Your password has expired.
You must change your password now and login again!
New password:
我不知道如何发送基本的用户输入,如新密码。据我所知,exec_command实际上期望的是linux命令,而不仅仅
我启动了一个新的Amazon Linux 2实例。我尝试通过管理控制台中EC2 -> EC2 Instance Connect (browser-based SSH connection)选项下的Connect实例连接选项连接到该实例。我得到了错误:
There was a problem setting up the instance connection
An internal error has occurred within the remote server, and the connection has been terminated.
If this instance ha