Giving SSH access to yunohost

Every-time I give SSH access to yunohost during install it basically locked me out of the server.

I tried to login from SSH key and it ask me about the password I put the password used for yunohost admin account but it dont let me in.

Can someone help regarding this?

Hello,

You might have been locked out of the server by the protection in place to avoid bruteforce logins. See the end of the page “ssh and security” : https://yunohost.org/#/ssh

Then try to use a password first and then later “ssh key”. Which user do you connect as ?

I setup the server and everything setup in Yunohost admin panel.

Now i wanted to login to root in console via Bitvise ( a software like putty) now it wont let me in it ask me for password. I am trying to login as root user.

Hello,

It’s impossible to connect by ssh with root and it’s depreceted.
Connect it with an user who is allow, then su - admin and finish with sudo -i

martoni

1 Like

Hello,

As said, root login is no longuer active, you should use admin now.
If you have to login with root, you have to edit /etc/ssh/sshd.config in order to add PermitRootLogin yes and restart ssh with service ssh restart.
Hope it could help you.

ppr

1 Like

Got it
Which username should i use now? admin or something else

Yes : admin with the password define during the installation.
On the web admin’s portal https://your_server/yunohost/admin, it’s the same password.
With ssh :

ssh admin@IP
or if you have change the common port 22
ssh admin@IP -p port_number
Then you had to use sudo to run some commands.

ppr

4 Likes

Thank for help