LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2024, 03:01 PM   #1
Mutilated0936
LQ Newbie
 
Registered: Feb 2024
Distribution: Mint 21.3 / mate & xfce4
Posts: 4

Rep: Reputation: 0
Where to find ssh client prefs?


Hello,
I'm experiencing ssh-problems: I have two Mint 21.3/ Kernel 5.15.094 computers. One running MATE 1.26.0 and one running xfce 4.18.1. Also one Mac OSX 12.something.

The one running xfce can log in just fine in my RBpi. Both VNC as SSH, no problem. On the Mac I can ssh. Didn't try vnc.

But: On the MATE-device, I used to be able to ssh as well, but since a fresh install of RBpi-OS I can't ssh anymore. Strangely enough, VNC still works fine. I can (as seen over vnc) ssh into the RBpi over both 127.0.0.1 and its internal ip#. All machines are on the same /24 network. On the Mate I continuously get a timeout. As if I misspelled UID or ip#.

I tried switching off the firewall, rm known-hosts (and .old). I think somewhere I need to find prefs for the ssh-client in mate. But where are they? How about keygen? But then: why do the Mac and the xfce then still work? And what prefs are suspicious?

Any help is greatly appreciated!
 
Old 02-19-2024, 04:20 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,635

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
I am unsure what you mean by "prefs"?
On my system:
Client settings are in /etc/ssh (ssh_conf) and /etc/ssh/ssh.d/, and in your folder ~/.ssh/.
Server settings should not be the issue, since the server side works with other clients.

Mine may not match yours, as mine is not standard Mint.

Last edited by wpeckham; 02-19-2024 at 07:57 PM.
 
Old 02-19-2024, 06:41 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
With strict host key checking you should of removed the entry in known_hosts file for all client computers?

Are you using keys only and no passwords? If keys did you remember to copy the Mate's public key to the Pi?

The -v option will provide debug information with increasing verbosity with more vs, the max is -vvv. Look at the output to see where it is failing.

ssh -vvv user@pi_ip_address

Post the output.

A users specific configuration is in ~/.ssh. System wide client configurations should be in the /etc/ssh/ssh_config file.
 
Old 02-20-2024, 01:24 PM   #4
Mutilated0936
LQ Newbie
 
Registered: Feb 2024
Distribution: Mint 21.3 / mate & xfce4
Posts: 4

Original Poster
Rep: Reputation: 0
@wpeckham:
- with "prefs" I mean "preferences".
- locations seem to be similar on my systems. Unfortunately, both mate and xfce have same settings.

I agree with you that this problem seems to be not so much at the server.

@michaelk:
- not entirely sure what you mean by your first sentence, but what I did is "rm known-hosts" (and .old). I didn't actually change the contents of the file. Just rm.
- Actually I'm not using key at all. For now, just UID/PW. I was planning on changing just that to key, but then I couldn't ssh to RBpi anymore. So now I'm working on this ssh-thing. This also matches that I didn't copy the public keys of neither the mac and the xfce.

Please see below the output of "ssh -vvv usr@ip":

OpenSSH_8.9p1 Ubuntu-3ubuntu0.6, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname x.x.x.x is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/xxx/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/xxx/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address x.x.x.x port 22: Connection timed out
ssh: connect to host x.x.x.x port 22: Connection timed out

Does this make sense to you? I'm lost in the last 3 lines, especially the set_sock_tos-line. What does that mean?
 
Old 02-20-2024, 02:04 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
You might have to install nmap but post the output of the command from the Mate system.

nmap Pi_IP_address -p 22
 
Old 02-21-2024, 02:48 AM   #6
Mutilated0936
LQ Newbie
 
Registered: Feb 2024
Distribution: Mint 21.3 / mate & xfce4
Posts: 4

Original Poster
Rep: Reputation: 0
Nmap tells that the tcp-port 22 is open for ssh.

But something strange just happened: as usual I first pinged the host (received normal reply) and then, as I tried to ssh, just to make sure nothing had changed, I suddenly got the authenticity-question! Just had to agree and now things seem to act as they should. I honestly didn't change anything... how is this possible? I could continue ssh-login en exit. After that, I did your nmap.

I'm sorry, I've been witness of some magic. Can't explain why it suddenly works. Actually, that's frustrating... I want to know why. Rebooting all systems is the only thing, but I did that many times before as well and then it didn't change a thing.

Well, at least I can continue now to disable PW-logins and go for key-login from now on.

Thanks for helping anyway!
 
Old 02-26-2024, 02:52 PM   #7
Mutilated0936
LQ Newbie
 
Registered: Feb 2024
Distribution: Mint 21.3 / mate & xfce4
Posts: 4

Original Poster
Rep: Reputation: 0
I'm so sorry, but just as magically as it has been working for a few days, it now suddenly stopped again... nmap gives same answer: port is open for tcp. But "connection timed out" again...

Any ideas? I can ping, vcn works fine. I didn't change anything. What is happening here?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is prefs stored in MozFirebird? megaspaz Linux - Software 2 07-20-2003 05:55 PM
Xterm : can't get prefs to be permanent beforewisdom Linux - Software 1 06-22-2003 07:46 AM
Galeon prefs in Mandrake 9.1 RC2 JHuizingh Linux - Software 3 04-24-2003 05:15 PM
how do i set global prefs for bash polonius19 Slackware 2 03-06-2003 05:23 PM
how to copy prefs, bookmarks, addies, email. Day Brown Linux - Software 1 01-27-2002 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration