SSH到Centos服务器我必须使用:
SSH -c aes256-ctr server.name.edu -l myid
我怎样才能使密码默认的服务器,而不必在命令行中指定它?
你可以在你的用户的sshconfiguration文件中设置它(如果它不存在,只需通过touch config创build它)。 在你的用户的sshconfiguration文件(〜/ .ssh / config)或全局的sshconfiguration文件(/ etc / ssh / ssh_config)中放入以下行:
Cipher <cipher>
然后你应该可以像这样使用ssh而不指定密码:
ssh server.name.edu -l myid