Questions tagged [ssh]
SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.
8,238 questions
3
votes
1
answer
68
views
Yubikey true passwordless SSH
so far I have been using passwordless SSH by using a private/public key pair and adding my public key to the server's authorized keys list. It has been working very well.
However, for several other ...
0
votes
1
answer
51
views
Does the order of wildcard 'Host *' blocks matter in ~/.ssh/config?
I am setting up a ~/.ssh/config file to manage multiple remote servers. I want to use a wildcard to apply shared settings (like my username and identity file) to a group of servers, while using ...
1
vote
1
answer
52
views
Fail2ban with systemd: No log files for sshd jail
I am unable to setup fail2ban for restricting ssh Access since days.
System: aarch64 with Raspberry Pi OS
Fail2ban Version: latest (V1.1.0)
Logging Architecture: provided by system-journal, not file ...
0
votes
1
answer
36
views
How to let flatpak VSCode see my sshpass in SteamOS?
I've installed sshpass using the following commands on SteamOS:
sudo steamos-readonly disable
sudo pacman -Sy sshpass
This has worked and I can prove it by doing sshpass -V which gives me:
sshpass ...
3
votes
1
answer
100
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 ...
0
votes
0
answers
53
views
ssh daemon going to sleep?
I'm having a problem ssh'ing between computers on my local network.
If I try to ssh from computer A to B, I get "No route to host". Pinging computer B from A returns "Destination Host ...
3
votes
2
answers
356
views
ssh -Y to remote but xlogo window does not pop up
this seems like a trivial issue but I can't get xlogo to show up from a remote ssh session.
on the ssh server side I have enabled X11forwarding in sshd_config.
from the client I connect with ssh -Y -...
0
votes
1
answer
39
views
Unable to rsync ssh -p 12345 /mnt/drive-path-to/Dropbox/ to /home/user/path-to-folder/ (MX Linux to Raspberry Pi 5)
I have my Dropbox syncing on Mx Linux box just fine, working as expected.
The Dropbox folder is at /mnt/drive-path-to/Dropbox
Operating System: MX Linux 23
KDE Plasma Version: 5.27.5
KDE Frameworks ...
1
vote
1
answer
81
views
How to SSH into Windows 11 VM (Winboat+Podman) from SteamOS?
I have a Windows 11 VM installed via Winboat (using Podman) and I'd like to ssh into it.
I managed to do the following and it works as far as I'm aware:
Install SHH in Windows using this:
Add-...
3
votes
1
answer
457
views
Detect ssh user@host vs ssh user@host <command> in PAM module during ssh auth
I’m writing a Linux PAM module that runs during ssh authentication and in this module I perform additional secondary/2fa authentication. If a user called a remote command (ssh user@host command) my ...
0
votes
1
answer
26
views
After key change, ssh client first give wrong (probably olds) keys to server
after changed ssh keys in both (client and server), a script that runs on the ssh client first give to the server two wrong public keys (probably the olds) then the right one.
gen 10 23:34:31 server ...
3
votes
4
answers
379
views
Why do I receive response from the closed via iptables port
I set the following rules on the server with help of iptables
sudo iptables -A OUTPUT -p tcp --sport 22 -j DROP
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
Why am I getting a response via SSH?
...
0
votes
2
answers
54
views
How do I force a user to reset their kerberos password on first login?
I have openssh on a Oracle Linux 8.10 server set up to use kerberos authentication or GSSAPI for secure shell logins:
from /etc/ssh/sshd_config:
### Kerberos options
KerberosAuthentication yes
...
1
vote
1
answer
95
views
Why does OpenSSH RekeyLimit not trigger before userauth stage?
In ubuntu 20.04, I want to set rekeylimit in openssh in server side to re-exchange the key of session for more security. Although, I have used the RekeyLimit parameter in /etc/ssh/sshd_config I cann't ...
-2
votes
1
answer
293
views
hide openssh version banner
How can I prevent my OpenSSH client from printing its version string when someone connecting with ssh -v (verbose mode)?
I don’t want this version banner to be printed during verbose mode. I’ve ...