I have a shared laptop with Windows 10 at home that I would like to use SSH to log into from my jailbroken iPhone using the NewTerm and OpenSSH tweaks
I used this video to set it up. The SSH connection works but when I try to add a pub key it does not ask for the passphrase of the key instead it ask for the user password
I have followed all the instructions:
-
I installed and launched the OpenSSH server on Windows.
-
I created a private/public key with
ssh-keygen
on the iPhone andscp
the pub key to Windows. -
Created and secured the
administrators_authorized_keys
and instead ofAdministrators:F
in the file I had to useAdministrateur:F
since I use a French Windows.Now the SSH command output
testuser@windows_ip's password
-
I set the
sshd_config
toPubkeyAuthentication yes
andPasswordAuthentication no
.
After all that the ssh command on the iPhone output Permission denied (publickey,keyboard-interactive)
.
What am I missing?
EDIT 2: Here are the server side logs. I also updated the log for the client to match the server side
Best Answer
After I had to restart from the beginning because I changed my phone and had to start again and had problems recreating the setup
Here is how I did it
ssh-keygen
on the client sidescp
id_rsa
andid_rsa.pub
toC:/Users/X/.ssh
forid_rsa
andC:/ProgramData/ssh
forid_rsa.pub
note here Administrateurs needs to be what ever Administrateurs means in your windows default language so Administrators for english
Services
Start/RestartOpenSSH Authentication Agent
andOpenSSH SSH Server
id_rsa
andid_rsa.pub