- sudo vi /etc/hosts
Open the host to add the server.
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
172.30.1.xx gpu-server1
172.30.1.xx gpu-server2
172.30.1.xx nas-server
172.30.1.xx cpu-server1
172.30.1.xx illunex.gitlab
172.30.1.xxx scrap-server
172.30.1.xxx dev-server
172.30.1.xx gpu-server3 #Add new server here
Connect to the server via ssh.
ssh illunex-cpu-server1
>>>
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-90-generic x86_64)
...
Check the server details.
- cat ~/.ssh/config
cat ~/.ssh/config
>>>
Host illunex-dev-server
HostName dev-server
User ai
ForwardAgent yes
...
'Linux > terminal' 카테고리의 다른 글
Copy files from remote server to local (0) | 2022.11.16 |
---|---|
Install pyenv-virtualenv on mac (0) | 2022.03.31 |
shell, bash (0) | 2022.03.15 |
How to connect to the server from the client, set to alias. (0) | 2022.03.15 |
$, grep (0) | 2022.01.03 |