⛳ This video shows How to SSH from one EC2 to another. In this method, a new key pair is created in origin server using ssh-keygen and the public key is copied into target EC2's authorized key file.
Procedures Followed
In origin EC2:
1. Generate key
ssh-keygen -f .ssh/new-key-file
2. View the public key
cat .ssh/new-key-file.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMCchVxtsJhCqLhSfLS595ycUgFmNgAwDDJU5Dro7xhQ ubuntu@server-1
3. Now login to server-2 using EC2 instance connect
4. View the authorized_keys file
cat .ssh/authorized_keys
Note: It would be empty.
5. Add the new-key-file.pub from server-1 to authorized_keys file of server-2
vi .ssh/authorized_keys
Now, Add the pub key contents.
6. Now go back to server-1 terminal and SSH into server-2. Findout server-2 ip address
ssh -i .ssh/new-key-file 100.24.9.10
⛳ SSH from EC2 to EC2: Please refer to this video as well.
• How to SSH from One Linux EC2 to another
⛳ AWS Hands-on for Beginners playlist:
• AWS Hands-on for beginners
⛳ SSH (Secure Shell or Secure Socket Shell), is a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network. It also refers to the suite of utilities that implement the SSH protocol. Secure Shell provides strong password authentication and public key authentication, as well as encrypted data communications between two computers connecting over the internet. SSH is widely used by network administrators to manage systems and applications remotely, enabling them to log in to another computer over a network, execute commands and move files from one computer to another.
Смотрите видео How to SSH from one EC2 to another - Create key pair in Origin EC2 and copy public key to target EC2 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Unus AWS 07 Июль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 278 раз и оно понравилось 12 людям.