📅  最后修改于: 2022-03-11 14:49:32.494000             🧑  作者: Mango
Method 1 - Using SSH Config File
$ vi ~/.ssh/config #
Host webserver
HostName 192.168.225.22
User sk
$ ssh webserver
Method 2 - Using Bash aliases
Open ~/.bashrc or ~/.bash_profile file:
alias webserver='ssh sk@192.168.225.22'
Then, apply the changes using command:
$ source ~/.bashrc
$ webserver