Access server via SSH after Yunohost install

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.17
How are you able to access your server: SSH

Describe your issue

Hi there.
I bought a Cloud VPS from Gandi with Debian 12. I was able to create an SSH private and public key, then install Yunohost. Yunohost is up and running now.
But now I want to access via SSH to change application preferences and can’t.
Is there any command list that I can try to follow?

Can you please help?

Share relevant logs or error messages

I’ve already tried ssh admin@123.123.123.123 but I got this error:
kex_exchange_identification: read: Connection reset by peer
Connection reset by 123.123.123.123 port 22

Use your username

Of course. But the password asked is the private key, the public key or the password? I’ve tried with the 3.

My guess is your ssh key might not be in the expected/default directory so ssh falls back to password authentication.
Try ssh -i /path/to/your/key user@host
Another possibility would be that you set a passphrase for your key… but prompt would be different.

Hi! Thank you for your help.
I’m in the right directory user / .ssh/
If I give the command ‘ls’ I can see my key file.
What should be the correct command?
ssh user@22.222.22.22 right? then he asks me for the password.
But then he gives me a “Permission denied, please try again”.

Try with key file path.

I’m getting this error: Failed to start sss.service: Unit ssh.service not found.
What does this mean?

What exact command did you run?

Not sure to understand what you want. Do you want to ssh to your yunohost vps? Then just use ssh username@vps_ip -p port in case you have changed the ssh port in the yunohost webadmin.
Check in the webadmin > Tools > YunoHost settings, that “Password authentication” is enabled.
If you want to SSH Passwordless, then have a look at this but don’t change sshd_config by hand, use the webadmin.
And if you want to ‘ssh’ to your application, then this is not how yunohost works. All apps are on the same machine, you have to enter the correct environment of the app using sudo yunohost app shell app_id. Replace app_id with the one you see in the webadmin > applications.

Keep in mind that successive failed ssh login will ban you, so you have to wait to be unbanned.