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,101 questions
Score of 1
2 answers
155 views
How to run an SSH server in Docker and on the host machine on the same port?
I want to run a Git server in Docker, and have a regular SSH server on the host, with both sharing the same port.
The Git server uses git@ip while the SSH server uses user@ip.
Is it possible to bounce ...
Score of 3
1 answer
373 views
High network traffic causes SSH to hang
I'm connecting to a mobile computer (SBC) using wifi. This computer is transmitting data continuously, in the form of small and frequent UDP packets. I receive the data fine on my PC, but while the ...
Score of 0
0 answers
73 views
SSH does not connect when establishing SOCKS proxy
A complication is I'm using Tor Hidden Services. But that seems to be working.
ssh -pxxx user@server gets me to a prompt.
ssh -pxxx -D 1337 user@server gets me this error:
Disconnecting UNKNOWN port ...
Score of 0
1 answer
111 views
SSH over Tor Hidden Service - asks for password
Server runs Trixie.
Client runs Trixie.
Local connection, my RSA key is used, passwordless login.
Tor connection (Tor Hidden Service), I am asked for password.
Also over Tor connection, but not local: ...
Score of -1
1 answer
89 views
Showing a webpage via SSH only
I am setting up an Ubuntu server on EC2 that will be used as a production web server. I already installed PHP, Apache, and MariaDB.
I also installed phpmyadmin. Please note phpmyadmin is located at /...
Score of 0
1 answer
171 views
pam_radius_auth 3.0.0 reuses OTP as password in PAM (works correctly with 1.4.0)
I am configuring SSH authentication with PAM and RADIUS OTP (RSA SecurID). The setup worked correctly with pam_radius_auth 1.4.0, but after upgrading to pam_radius_auth 3.0.0, the OTP entered for ...
Score of 1
1 answer
157 views
Monitor expiration of OpenSSH certificates (users and hosts)
Using OpenSSH certificates for host keys and user keys, I wonder whether their expiration could be monitored automatically in advance (before they actually do expire):
Of course the issuing CA could ...
Score of 1
1 answer
179 views
SSH/SFTP won’t enable (checkbox reverts) — how to reset SSH without shell?
I’m running Synology DSM 7.3.2-86009 Update 1 and can no longer enable SSH or SFTP — the checkbox immediately reverts after clicking Apply.
I’m logged in as admin and already performed a Mode-1 reset ...
Score of 0
0 answers
783 views
In MacOS Tahoe and Sequoia, who do you trigger the Local Network Access popup from the command line?
We're starting to see a problem where ssh tunneling stops working in MacOS Sequoia and/or Tahoe. The problem stems from MacOS adding "Local Network Access" permissions, which prevent ...
Score of 2
1 answer
404 views
Linux server hangs under heavy mem usage or file I/O despite CPU and memory cgroup limits. SSH becomes unresponsive. How to keep it responsive?
I have an Ubuntu 24.04 Linux instance with 4–5 users logged in via SSH. Recently we started encountering an issue where the system becomes extremely slow or effectively hangs.
SSH becomes very ...
Score of 3
2 answers
169 views
sshd: keyword is overridden in later match section whereas man page tells the opposite
Man sshd_config on my system (and also online man page here) says the following about Match statement:
Match Introduces a conditional block. If all of the criteria on the Match line are satisfied, ...
Score of 0
0 answers
67 views
EC2 instance hangs on SSH/console login after reboot
I have a Linux EC2 instance (Amazon Linux 2023) used for development that became inaccessible after a reboot.
Before the reboot, the instance was running normally and perfectly fine. After the reboot, ...
Score of 1
1 answer
140 views
I need to use a jump condition in PAM with sshd
I need to skip a line in my pam stack for sshd - if and only if - the $PAM_USER is a member of a group called linux_svc_accts. I'm using Rocky Linux.
I've tried:
auth [success=1] ...
Score of 0
1 answer
209 views
Why is `sshfs` unable to resolve hostname when using short host name from ~/.ssh/config?
When using the short hostname from ~/.ssh/config sshfs says it can't resolve the hostname
sudo sshfs -o debug,sshfs_debug,loglevel=debug,allow_other,default_permissions,compression=yes,cache=yes,...
Score of 1
1 answer
101 views
Static IPv6 host in a SLAAC LAN – ping works, SSH connection fails
Environment
OpenWrt router
FreeBSD host (FreeBSD 15.0)
macOS client
Issue
My OpenWrt router is configured to advertise an IPv6 ULA prefix (fd7d:9594:ca69::/48) to clients on the LAN interface (in ...