Questions tagged [sshd]
the secure shell (SSH) daemon
756 questions
0
votes
1
answer
52
views
How do I stop a sftp-chrooted user from escaping by changing its username?
I have 2 users and their distinct ssh keys, and a ssh server only accepting keys
user_1: a normal account with ssh and sftp accesses. Trusted. It can escape its home and download anything it can read....
743
votes
32
answers
1.4m
views
Why am I still getting a password prompt with ssh with public key authentication?
I'm working from the URL I found here:
http://web.archive.org/web/20160404025901/http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/
My ssh client is Ubuntu 64 bit 11....
4
votes
1
answer
661
views
Upgraded Debian Bookworm to Trixie, ssh login now hanging for 10 seconds
As the title says. Upgraded Bookworm > Trixie, and now ssh is hanging 10 seconds at login, via home local network, when it never used to.
2025-08-17T16:07:29.828339+10:00 debian sshd-session[4260]: ...
0
votes
1
answer
162
views
sshd service doesn’t start when booting Arch Linux
I installed OpenSSH, but the SSH server sshd doesn't start automatically on boot.
I can start sshd manually without any issues.
sudo /usr/bin/sshd
Starts;
[john2@archlinux2 work]$ sudo systemctl ...
0
votes
1
answer
64
views
Reasons for reverse SSH tunnel failure
I have a NAS in my living room with a bunch of services like GitLab, NextCloud, my personal Website etc. running on it. All these services are reachable via a reverse SSH tunnel between my Ionos VPS ...
2
votes
1
answer
101
views
Restrict ssh access to single host per user
I am trying to restrict SSH for a user to a specific host:
I would like userA to be able to SSH to any host, allowing only pubkey authentication, and only if the connection comes from 192.168.1.17. I'...
0
votes
1
answer
1k
views
Rhel 9 SSH giving ssh_dispatch-run-fatal error
I'm trying to connect to a RHEL9 VM using ssh.
When attempting, it gives the error:
Connection closed by xxx.xxx.xxx.xxx port 22
I checked the /var/logs/secure log and found the following error
...
0
votes
0
answers
83
views
RHEL9 + CIS system will not accept pasted ssh password *ONLY ON FIRST SSH*
I have a RHEL9 server where I ran the RHEL9 CIS ansible-lockdown role and configured it so that root can ssh in (yes I know, will be remedied in the future).
The system is doing something very strange....
3
votes
2
answers
5k
views
Configure SSHD via Red Hat crypto-policy
I am using Rocky Linux 8 and 9 and they use the crypto-policy framework from Red Hat. Now I want to adjust some settings in the policy to forbid sshd to use some specific algorithms. But I can not ...
1
vote
2
answers
3k
views
How to set SSH daemon to listen on IPv4 only?
Current config (reboot was also done):
root@ubi:~# grep Port /etc/ssh/sshd_config
Port 30000
root@ubi:~#
root@ubi:~# grep ListenAddress /etc/ssh/sshd_config
ListenAddress 0.0.0.0
root@ubi:~#
root@...
1
vote
2
answers
1k
views
OpenSSH SSH daemon: IPv4-socket missing on Ubuntu 24.04
I stumbled over the following issue, while debugging ssh connections.
I have a Ubuntu 24.04 with openssh-server installed.
The corresponding systemd-service is running (now named ssh.service & ssh....
1
vote
1
answer
3k
views
SSH Unable to negotiate: no matching host key type found
I have an issue where older clients aren't able to connect to current (v8.x) versions of openssh server. I'm familiar with adding ssh-rsa,ssh-dss to the list of available key types but that doesn't ...
0
votes
1
answer
4k
views
Debian 12 won't accept remote ssh connections
I'm trying to set up a Debian 12 server, and I can't get it to accept ssh connections from my Ubuntu 22.04 machine (or an older Ubuntu machine). It doesn't ask for a password; the ssh command just ...
0
votes
2
answers
2k
views
SSH Server Side, Specify Algorithm Per Host
On a server running SSH I need it to accept some legacy algorithms for 1 particular host for SSH so that I can copy files from the client to the server. I can't change the client side because its old ...
-1
votes
1
answer
65
views
publickey authentication getting failed in rhel
I have 2 RHEL machines . I am attempting to login via ssh with publickeyauthentication from 1 machine (say Machine A) to the other (say machine B) both of which are in the same network. For that first ...