The general command to access the remote server using SSH is: SSH [email protected] address,
For example: SSH [email protected], then enter a password to access.
Take Mac OS for example, other operating systems, depending on the directory to find their own
Settings are as follows:
Use to cd ~/.ssh/
enter the SSH directory, you will see a config, known_hosts two files, generally not set, there will only be known_hosts, you can use the touch config
command to create a config file.
Using vim to edit the config file, add the following:
1xx.1xx.1xx.67yes
which
1, Host behind is the name, in the future can be accessed according to this name;
2, hostname is your host IP address;
3, user is the host login username;
4, identitiesonly yes inherent configuration;
Setup complete, late words use: ssh jhd
then enter the password, you can log on to the remote host!
SSH settings alias access to remote server