ssh-keygen
#ivate rsa key pair.
#to save the key (/home/eunbi/.ssh/id_rsa):
#rsa already exists.
이미 있다고 나온다.
cat /home/eunbi/.ssh/id_rsa.pub
있다고 알려준 주소를 따라 치면 ssh_rsa로 시작해서 이메일이나 서버 계정으로 끝나는 key가 출력되고, gitlab에 ssh-settings에서 전체를 복사하여 추가해주면 성공
ssh -T eunbi@AIServer01
The authenticity of host 'aiserver01 (127.0.1.1)' can't be established.
ECDSA key fingerprint is SHA256:QL9EG317mb0yBc4BGE7eniImHPIopOFdnBbYL+9gCaQ.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'aiserver01' (ECDSA) to the list of known hosts.
라고 치면 밑에 추가할거냐? 라고 yes하면
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-53-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
welcome 표시가 뜬다.
Uploaded by Notion2Tistory v1.1.0