修改主机名字

vi /etc/hosts
重启 reboot 生效

查看当前发行版可以使用的shell

[stark@localhost ~]$ cat /etc/shells

配置ssh config

Host hostname
Hostname 122.122.132.133.ipssh.net
ServerAliveInterval 7200
User username
Port 22
IdentityFile ~/.ssh/id_rsa

把自己的id_rsa.pub 存储到远程的机器上

ssh-copy-id -i ~/.ssh/id_rsa.pub username@122.122.132.133.ipssh.net

登录机器

ssh hostname