[Help!] Cannot Connect to My Servers Through SSH on Trisquel OS

16 Antworten [Letzter Beitrag]
Jack Haven
Offline
Beigetreten: 12/31/2021

I found I cannot connect to my servers through ssh on Trisquel. What should I do? Has anyone else encountered a similar situation?

I am using the latest version of Trisquel. To confirm the problem, I even have installed the operating system just now. When I use ssh to connect to my servers, I found it displayed: "Permission denied (publickey)". Of course, I tried to use password or ssh-key. However, I am completely unable to establish an ssh connection to my servers on Trisquel.

I try to connect to my servers on another computer. This computer is running Ubuntu 20.04 LTS (lastest version). Everything is okay.

Please help!

Ark74

I am a member!

I am a translator!

Offline
Beigetreten: 07/15/2009

Did you installed ssh on your trisquel box?

Jack Haven
Offline
Beigetreten: 12/31/2021

(reverse)

Jack Haven
Offline
Beigetreten: 12/31/2021

Yes. Of course. I am using Trisquel to connect my servers.

Ark74

I am a member!

I am a translator!

Offline
Beigetreten: 07/15/2009

Do you have a ssh-key on your trisquel server machine?

the publickey error sounds like you authenticate using ssh-keys, if you reinstalled the system without backing up your previous key, then is normal to not be able to access the server.

Make sure you have the current trisquel box account ssh public key on the .ssh/authorized_keys of the account you want to access on you server box, if the public key is not there, then that might be the reason you can't login.

trisquel----ssh-pub-key---->server---->authorized_keys

Hope I was able to explain myself.
Cheers

Jack Haven
Offline
Beigetreten: 12/31/2021

I know what you mean. I have the right private ssh key and public ssh key. And some of my servers are have my right public key. Other servers do not have public key yet. So I also use my password to connect to my servers.

However, I cannot establish connections.

I could connect to them by my another computer which is running Ubuntu.

Jack Haven
Offline
Beigetreten: 12/31/2021

All my servers are properly configured. They can work with Ubuntu well through password or the key.

Jack Haven
Offline
Beigetreten: 12/31/2021

Simply put, the ssh service doesn't seem to work properly with Trisquel.

Ark74

I am a member!

I am a translator!

Offline
Beigetreten: 07/15/2009

I connect to at least 10 machines/servers all day, your box might be using a pretty custom protocol, either new or old.

Either way use -vvv to get more info on it, and you'll find more about the issue at hand and from there probably a solution.

Regards.

Jack Haven
Offline
Beigetreten: 12/31/2021

I found my ssh client cannot find private key. Really strange.

I run:

$ssh -keygen -b 4096

I can use this way to work on Ubuntu. What's difference?

Jack Haven
Offline
Beigetreten: 12/31/2021

And why I cannot use my password to login through ssh? Trisquel develop team may haven changed something recently?

Ark74

I am a member!

I am a translator!

Offline
Beigetreten: 07/15/2009

And why I cannot use my password to login through ssh?
That's setup on the server side the box you want to login to, not on the client side.

Trisquel develop team may haven changed something recently?
Trisquel ships the same version Ubuntu does, the rebranding changes done to ssh are 1 y/o at this point for Nabia.

Jack Haven
Offline
Beigetreten: 12/31/2021

I can connect my servers by using my Ubuntu computer. I know the right ports. Are your ten servers local or remote? All my servers are remote.

Ark74

I am a member!

I am a translator!

Offline
Beigetreten: 07/15/2009

Indeed, 7 out of 10 are remote.

Most of ssh connections issues comes from,

  • heavy security customization
  • wrong permission on the .ssh directory
  • network issues, like mtu mismatch between networks.

Unless you start ruling out carefully any posible option, something could slip through the cracks.

Jack Haven
Offline
Beigetreten: 12/31/2021

Just to add: I think I've completely ruled out any errors on the server side. The problem should be with Trisquel's default configuration. Especially considering that I have completely reinstalled the client's system. And I also found that the VPN behaves weirdly on Trisquel recently, IPv6 often fails.

Ark74

I am a member!

I am a translator!

Offline
Beigetreten: 07/15/2009

I see very complicated that trisquel changes could break ssh since there have not been changes for the last year, also every release version matches the ubuntu one,

  • etiona - 1:7.6p1-4ubuntu0.7+9.0trisquel1 | bionic - 1:7.6p1-4ubuntu0.7
  • nabia 1:8.2p1-4ubuntu0.5+10.0trisquel1 | focal 1:8.2p1-4ubuntu0.5
  • aramo 1:8.9p1-3+11.0trisquel2 | jammy 1:8.9p1-3

Now, I try to keep an open mind on any situation but as I've mentioned before, I highly doubt there is an issue on trisquel's ssh.

I think I've completely ruled out any errors on the server side.

With the little general information you share, I can only provide general information that could lead you to fix your issue.

Jack Haven
Offline
Beigetreten: 12/31/2021

I found I can connect to my servers after upgrading Trisquel OS to the latest version. Great!