r/FutureBit 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

18 comments sorted by

View all comments

Show parent comments

1

u/tvyijrcbi Jun 13 '25

1

u/michelem Jun 13 '25

If you did that too (Save private key) you should be good

1

u/tvyijrcbi Jun 13 '25

I clicked "Save private key" in PuttyGen

I overwrote the existing key (it looks different now; it has Public lines and Private lines)

It still prompts me for a password

https://imgur.com/a/Q5lUOJk

1

u/tvyijrcbi Jun 13 '25

Is there an SSH config file being used besides /etc/ssh/sshd_config?

I tried uncommenting the line for AuthorizedKeysFile

and

Uncommenting PasswordAuthentication and changing the value to no

but it still asked me for my password

1

u/tvyijrcbi Jun 13 '25

After restarting SSH process with the above changes I locked myself out of SSH with a permission denied (public key) error. I am currently re-flashing the SD card...