create User
sudo useradd -m -s /bin/bash -G sudo xxx
sudo passwd xxx
-s select the exactly bash
-G select the attached group .
In generally, we only select the sudo
send the key
- if you did not have the rsa key. then create one by
ssh-keygen
- send it to the remote server by
ssh-copy-id -p port user@remote ip
For Convenient link
- enter the directory of .ssh
cd .ssh
- make file of conig
touch config
- write the message of your remote computer
- vim config
- i
-
Host hostname for your any name you like
HostName remote_ip
User username
Port port
Example:
Host ahhhha
HostName 183.183.183.183
User aaa
Port 22
- :wq