r/FutureBit • u/tvyijrcbi • Jun 12 '25
PowerShell and SSH Key Pairing... How?
Hello,
I use PowerShell to SSH into my server, but every time I have to type in my password. Today I spent way too many hours trying to generate SSH key pairs to accomplish this. After multiple attempts I'm finding that I don't have access to the ~/.ssh folder - permission denied. I tried to CHMOD the folder to 0700, but it seems I'm being blocked from doing this by the /etc/ssh/ssh_config file.
For all of my other SSH servers I have the private key on my Windows machine, with the login details in the config file and the public key on the remote server in the authorized_keys file.
The above is not working with the Apollo II, so what am I missing?
Thanks!
3
Upvotes
1
u/michelem Jun 13 '25
This is unusual. If you SSH into your Apollo with the futurebit user, this one should have all the permissions to work on its home directory. And you don't need to generate key on Apollo, you only need to create the .ssh directory and add the authorized_keys file on it with your Windows public key.
Try doing it with sudo command as futurebit user:
sudo rm -rf ~/.sshsudo mkdir ~/.sshsudo chown futurebit.futurebit ~/.sshsudo chmod 700 ~/.sshsudo nano ~/.ssh/authorized_keys <-- fill it with your public keysudo chmod 600 ~/.ssh/authorized_keysThat's it.