I'm trying to connect to my remote machine from my local machine using SSH. I have done the following steps:
- I opened the terminal on my local machine (ubuntu 20.04 LTS) and typed
ssh-keygen -b 4096
(path: ~) - I pressed enter for every step until the key was generated (no passphrase)
- There was then a
.ssh
file created. I then didcd .ssh/
- By typing the
ls -la
command my private and public keys were displayed. I then docat id_rsa.pub
and copy the public key to my clipboard - I move to my virtual machine which is supposed to have a role as a remote one (Kali)
- I open my terminal and do
mkdir .ssh
(path: ~) and thencd .ssh/
- I then do
nano authorized_keys
and paste the public key which I had previously copied to the clipboard into it, save the file, and exit. - I then go back to my original (local) machine, change directory to home (~), and type
ssh [my_remote_hostname]
But this is what I get in the terminal as result: ssh: Could not resolve hostname kali: Temporary failure in name resolution
What have I missed? What am I doing wrong?
man hosts
for the format). – user535733 Sep 24 '20 at 15:50