Questions tagged [sshd]
the secure shell (SSH) daemon
756 questions
38
votes
6
answers
38k
views
tmux session killed when disconnecting from ssh
Summary: I'm trying to figure out why my tmux session dies when I disconnect from ssh
Details:
I have tmux installed on an Arch Linux system. When I start a tmux session I can detach from it and ...
12
votes
2
answers
46k
views
Specifying allowed client SSH key types that the server accepts
I have a server (running openssh 8.1p1-2) with sshd_config configured like this to accept only ed25519 keys:
PubkeyAcceptedKeyTypes [email protected],ssh-ed25519
That works great for ...
0
votes
1
answer
3k
views
How to fix fatal: Access denied for user A by PAM account configuration [preauth]?
Updated openssh to sshd 8.1. Error connecting to server: sshd fatal: Access denied for user A by PAM account configuration [preauth]
Configured ldap, authorization by key.
I don't understand what's ...
0
votes
2
answers
287
views
Screenshot of Debian 8.7 desktop via SSH client running on an Android phone
I am trying to monitor my laptop (Debian 8.7) when it is being used by someone else,I want to see what at any time people are running on my system & for this I'm trying to run a terminal command ...
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....
1
vote
1
answer
2k
views
ssh localhost: Permission denied (publickey) Ubuntu on WSL2
Previously asked this question on askubuntu.com but I thought this is rather a general linux question so I'm asking here again:
I'm having trouble "sshing" to localhost and getting a ...
7
votes
2
answers
24k
views
Xauthority problem xdpyinfo: unable to open display "".
I am trying to run a program after enabling X windows port forwarding.
My sshd_config file in /etc/ssh/sshd_config is configured such that:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
...
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 ...
6
votes
1
answer
5k
views
Running sshd in cygwin: "/var/empty must be owned by root..."
I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by ...
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 ...
3
votes
2
answers
28k
views
set a limit on concurrent SSH/SFTP connections to 2 per user
I made the changes in /etc/security/limits.conf
test hard maxlogins 2
sftptest hard maxlogins 2
After above entries I have tested below scenarios
Open 2 putty sessions ...
9
votes
2
answers
63k
views
sshd: "no hostkey alg" fixed but still confused
Apparently Fedora 35 does not list ssh-rsa in HostKeyAlgorithms or PubkeyAcceptedKeyTypes so trying to ssh from an old CentOS 6 machine yielded an error:
$ ssh as1s16.intra.corp.us
no hostkey alg
So ...
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]: ...
4
votes
1
answer
4k
views
Freeradius PAM create user and home on login
At this moment i have installed freeradius and PAM radius properly. When i create an account on the system and set a password in /etc/raddb/users.conf the user can login. Sudo also works great with ...
1
vote
1
answer
2k
views
ssh PrintLastLog prints actual login
I connect with my server via ssh and always it shows the last log: Last login: Sat Mar 19 14:05:17 2016 from... but that login is my actual login. What's the utility of this info? It should print the ...