Member-only story
Connect to your remote terminal with SSH but no password
In this article…
Device A is the device you want to SSH from, in this case Windows.
Device B is the device you want to SSH to, in this case Ubuntu.
Ok? Ok.
Step 1: Create the SSH Key on Device A.
So go to the PowerShell on Device A, do you need administrative rights? IDK but just open as admin anyway ok?
Then do this…
ssh-keygen -t rsa
You can leave the fields blank.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again: YOU CAN LEAVE ALL THE ABOVE BLANK IF YOU WANT
It will generate some files and tell you where they are, something like this ok?
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
Notice where your public key is my dude.
Step 2: Create “.ssh” folder on Device B
Now from the same terminal, you can create / prepare the folder on Device B, like this.
ssh username@ip mkdir -p .ssh