Questions tagged [ssh]
Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.
9,102 questions
2
votes
0
answers
117
views
SSH connection to docker container when host is connected to VPN
I am having an issue establishing a ssh connection to my docker container when the docker host is connected to a vpn (nordvpn).
Here is what I have done :
On my router : i have port forwarded an ssh ...
0
votes
1
answer
36
views
Cannot connect to SSH via public key to specific user
On my server I have user ruslan and I manually created user git. I added to this user's .ssh/authorized_keys my public key. And I can connect via public key to user ruslan but can't to user git.
...
0
votes
2
answers
266
views
How to set environment variable into ssh session without using SendEnv?
We have a shared user account for administrative stuff. I want to use an env var to hold the initiant of the ssh session, so that the .bashrc can do user-dependent execution.
I have tried -o SendEnv. ...
4
votes
1
answer
669
views
How to distinguish sftp session in PAM?
I installed Debian 13 and lastlog2 to see when someone last logged in. Unfortunately, changes in Debian 13 mean that, unlike before, sftp logins are also included in the lastlog database. My goal is ...
0
votes
0
answers
70
views
why do my ssh connections keep timing out with `mux_client_request_session`?
I’ve been running into a frustrating issue with SSH connections lately and could use some advice or insight. When I SSH into a few of our servers, the connection drops with an error like:
...
0
votes
0
answers
99
views
SSH (sometimes) hangs before logging in
I have a ssh server running (OpenSSH_9.9p2, OpenSSL 3.0.16 from freebsd, UseDNS set to no), but I sometimes randomly have issues logging in. As in, ssh doesn't even get to the auth state. What could ...
0
votes
0
answers
128
views
smokeping: remote fping graph not updated
I'm running smokeping on my gateway. For direct pings (started from the gateway itself) all graphs work fine. They contain data.
Yet if I use the RemoteFPing probe, the graphs stay empty (I waited a ...
0
votes
0
answers
104
views
fail2ban replacement for server behind NAT
I have a server with sshd running behind NAT(port forwarded via iptables through another server).
All ssh connections from outside shown as connection from forwarding server IP.
So fail2ban won't ...
0
votes
1
answer
63
views
SSHD drops connection after first successful login
I have an issue with sshd and connection drops. I can successfully ssh from my laptop to my cloud server once. After disconnecting and reconnecting my ssh logins are dropped. The only way to make it ...
1
vote
0
answers
67
views
SSH Python Script to Windows Server Connection
I am trying to connect to a Windows Server using SSH in a python script.
I am able to connect with my username and password, but connecting with an SSH key fails with:
Check username, key file path, ...
1
vote
1
answer
94
views
multiple login methods sshd_config
I have several Linux servers. Most are configured to only accept logins with SSH keys, but for some servers, I need to be able to log in with both key and user/pass. The problem is that users who use ...
4
votes
1
answer
235
views
Understanding the ChallengeResponseAuthentication setting with PAM and login.conf
When using ChallengeResponseAuthentication, it is important to understand how it interacts with the Pluggable Authentication Modules (PAM) system and related configuration files.
When ...
4
votes
1
answer
414
views
How to generate reproducible ssh key?
I want to set up a local docker dev environment for ansible (semaphore ui container) and a dev docker container for testing tasks.
To avoid storing the ssh key somewhere I thought I create a ...
1
vote
1
answer
142
views
Make a chain (Port forwarding) of local open ssh ports and open after on a new port
I have to to ssh connections (connected via ssh to two seperate servers) bind with option -D to port 1080 and 1081 on localhost.
Now I want to make a chain so that the traffic first routes to port ...
1
vote
1
answer
51
views
ssh key login does not work after enabling DISA STIGs
After enabling the STIGs, SSH keys have stopped working. You present the key and it still asks for a password. Things I've tried:
Confirmed I'm using RSA with SHA2 which is accepted
Confirmed that ...