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,222 questions
0
votes
0
answers
35
views
Cannot ssh from laptop to Kali Virtual server on desktop
I just install a Kali server on my desktop using VMWare. The VMWare image has been setup to us a NAT network.
Using the ifconfig command on the Kali server, I know my IP address of the Kali server, it'...
0
votes
1
answer
36
views
Controlling wifi power save
On some of my server systems (Debian trixie), wifi power saving causes "laggy" terminal response on the client side of the SSH connection. By "laggy" I mean that there is an ...
0
votes
0
answers
23
views
DNS resolution with reverse proxy connection after server migration
I got a small setup with two private servers ps1 and ps2 at home behind a NAT. One server s1 with public domain s1.com is a small rented vps where I set up as reverse proxy with caddy.
On ps1 I had a ...
-1
votes
1
answer
45
views
Show vsock for ssh
Fedora server said
But when I try it from host
ssh vsock%1
ssh: Could not resolve hostname vsock%1: Name or service not known
Question: how to see the vsocks?
0
votes
0
answers
36
views
SSH Timeout when trying to connect to Oracle Cloud
I made a Compute Instance with Oracle Cloud because I'm trying to run a python code 24/0. I have tried connecting to it all day with no results. Here's what went off in the PowerShell:PS C:\Users\...
4
votes
1
answer
190
views
sshfs to a host requiring OTP pw
In my environment I have:
a Jenkins build server that I can ssh into using private/public keys. I can use sshfs to mount its file system on my local pc (running WSL on Windows 11, ugh but I can't ...
1
vote
0
answers
48
views
SSH from Windows to Linux, when something is piped into it, gets stuck and stop showing STDOUT
I'm an SSH scripting novice, so I'm trying to understand whether I'm just doing it wrong or there is an issue.
Background: I'm trying to connect VSCode RemoteSSH to HuggingFace Space dev mode and ...
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....
3
votes
1
answer
131
views
SSH login fail after security test from scanner
We have a nessus scanner at work, this machine is browsing the whole infrastructure to spot security holes and other issues.
I have a curious behavior on one of my debian 12 machines after a corrupted ...
0
votes
1
answer
39
views
ssh in mac error out suddently with ssh usage error message
My .ksh scripts in my mac usually run successfully, and until yesterday were initiating an ssh connection with the following command successfully:
ssh -o StrictHostKeychecking=no -o ...
0
votes
0
answers
47
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:
...
1
vote
1
answer
121
views
"error in libcrypto" for ssh-add with git-bash (mingw32) on Windows 11
I have a problem with SSH key usage for GIT on windows.
It works fine from windows GUI git clients.
From the terminal - git-bash / mingw32 - it fails with
$ git pull
git@<gitserver redacted>: ...
1
vote
2
answers
106
views
Use numbered file descriptors with SSH
I need to pipe data through SSH to a command that reads stdin. The command needs to run with sudo so I need to be able enter the sudo password, too. Without ssh, I'd use numbered file descriptors like ...
3
votes
2
answers
632
views
How do I set ssh to automatically utilize a key in ~/.ssh/id_rsa for a particular host?
I set up an SSH key using GNOME's Seahorse, also known as Passwords and Secrets. The application appears to have saved the private key to ~/.ssh/id_rsa.
I have copied the public key to the server ...
0
votes
1
answer
234
views
How do I set my SSH password/key for Pika Backup?
I made an account with rsync.net for backups but am having issues setting them up with the GNOME Project's Pika Backup.
I set the location as: ssh://<username>@<username>.rsync.net/~/...
5
votes
1
answer
308
views
Error 44 trying to rsync over ssh on Synology DSM
This is a bit long winded but I want to give as much information as I can. I have a Synology NAS running DSM 7.2.2:
steve@NAS:/volume1/docker/backuppc-mdns$ cat /proc/sys/kernel/syno_hw_version
DS223j
...
0
votes
1
answer
239
views
SSH connection over from LAN to WireGuard VPN Peer drops after ~1 minute despite keepalive settings
I have a device connected to my home network that wants to SSH via WireGuard VPN Peer. The VPN subnet is 10.0.0.x/24.
The issue is:
I can successfully connect to the device via SSH.
The SSH session ...
1
vote
2
answers
657
views
Why is ssh-agent ignoring the lifetime in .ssh/config?
I can't get ssh-agent to work like I want to. It keeps removing the saved identities on reboot.
I use AddKeysToAgent in my .ssh/config like this:
AddKeysToAgent 30w
That's the top of the file, ...
1
vote
1
answer
120
views
Invalid characters in ssh sessions
I'm opening an SSH session from Fedora to Raspberry Pi OS. Accented and special characters are replaced with question marks. Preferably I would like to learn to solve this without changing the server'...
3
votes
1
answer
200
views
ssh client automatically reject unknown host key
Is there a way to do this? My web search didn't find one. I'm familiar with StrictHostKeyChecking but there doesn't appear to be an "automatically reject" option. I'm wanting to move to ...
0
votes
0
answers
82
views
Slow SSH tunnel data transfer when combining two SSH connections
I have a server called publicserver on the public internet, and a second server (called privateserver) behind a NAT firewall. I also have a client PC (client, running Linux) behind another NAT ...
4
votes
1
answer
657
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]: ...
2
votes
1
answer
396
views
How to upgrade Debian Bookworm OpenSSH package(s) to be able to upgrade to Trixie via SSH without the risk of interruption?
When reading up issues to be aware of for Trixie, specifically interrupted remote upgrades (SSH), caught my eye.
I have one server I wanted to upgrade, to which I do have physical access, so this ...
1
vote
1
answer
85
views
Why can't download directory recursively with scp from remote Win10 to linux?
In my home local area network,Win10 is 192.168.28.242,debian is 192.168.28.252.SSH Server is installed on Win10 ,SSH service is on.I can connect Win10 from debian.
debian@MiWiFi-R4A-srv:~$ ssh hello@...
2
votes
1
answer
97
views
SSH from Windows into Linux using Pubkey, getting Permission Denied (publickey)
I am working on getting headless Raspberry Pi running Ubuntu Server 25.04. I haven't done this in a while and... passwords are no longer a thing, which is frustrating, but understandable.
I have ...
0
votes
1
answer
161
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
0
answers
41
views
Running sshfs through ssh proxy and passing in passwords: why does this work?
I have a remote machine that I must access through a proxy, and so I have set up the remote's ssh alias like so:
Host server
HostName server-ip
User my-username
ProxyCommand ssh my-proxy-...
2
votes
1
answer
113
views
Tmux pane with long-running session using wrong character set?
Today I connected to a long-running process in tmux over ssh for work, to find that the pane the process was running in seems to have started using the wrong character encoding for its output, leading ...
10
votes
7
answers
1k
views
Check if multiple files exist on a remote server
I am writing a script that locates a special type of file on my system and I want to check if those files are also present on a remote machine.
So to test a single file I use:
ssh -T user@host [[ -f /...
6
votes
3
answers
1k
views
Is it redundant or useful to add a UFW rule to deny root when ssh already does?
I manage a Debian (Bookworm) host. The sshd config is set to disallow login as root. I've tested that one cannot login as root, as expected.
However, I see hundreds of login attempts daily as root in /...
2
votes
1
answer
207
views
How to allow rsync via ssh to a specific directory only
I want to allow moving files to a specific directory on my server using rsync + ssh.
However, I don't want to fully trust the users using that SSH user.
One solution I found is to set the shell of the ...
0
votes
1
answer
256
views
Remote SSH Vscode plugin giving Permission Denied when running installation binary
I am getting a Permission denied error when using the Remote SSH plugin in VSCode to install VSCode server. Below is the version information:
Version: 1.102.1 (Universal)
Commit: ...
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
0
answers
64
views
Issue with SSH connection in Mac
I'm trying to ssh to a remote server. But after the ssh is successful the connection freezes within 2-3 minutes and eventually drops.
On checking packet trace i observed my mac is randomly sending a ...
0
votes
0
answers
60
views
terminal after ssh only return 4 line stdout
So, I did a certification lab lately and after I logged in my ssh, I cannot use a command longer than X line (4 in F server lab and 29 in C server lab. My host kali machine is working and I've tried ...
0
votes
0
answers
104
views
Connect to docker container through host via ssh without RemoteCommand
I have a server that runs multiple docker containers. I can access my server via SSH, and have set up my ssh_config to allow me to ssh into certain containers that I regularly access:
Host ...
1
vote
0
answers
113
views
SSH logging to external syslog server
I am using CentOS 10, and I am trying to send the SSH logs to an external syslog server listening on port UDP 514. I changed the default logging facility of sshd to local2 and tested it locally and it ...
2
votes
1
answer
141
views
SSH multiplexing + control master when network connection changes
I have a computer server and a laptop guest, both running Ubuntu.
I set SSH multiplexing and control master in the laptop's .ssh/config like the following:
Host servername
User username
Port 22
...
3
votes
2
answers
361
views
Remote control of GRUB?
Is there any way to remote control GRUB?
I am interested in not having to walk to the machine when it reboots. As such, I am only interested in non-virtualized solutions.
In particular, I want remote ...
2
votes
0
answers
126
views
Unable to write to client over ssh
Preface
I am unable to write to my client user connected over SSH. No issues with users on server.
I run as root, and SELinux is disabled for all the tests below(sudo setenforce 0). Yet, I always get ...
2
votes
1
answer
229
views
Disabling local accounts SSH in all Linux servers
We are in a process of Disabling local accounts SSH completely in our environment for all linux servers, We are able to disable this in combination of DSC & Azure policy which all working fine.
...
0
votes
1
answer
124
views
SSH X11 Forwarding - GUI Crashes with X Error of failed request: BadIDChoice
I am:
Running a program on a Ubuntu 20.04 AWS instance
Using SSH & X11 forwarding in PuTTY, with the VcXsrv X-server, to run program GUIs on my local Windows 11 machine
The GUIs of test programs ...
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
1
answer
101
views
Unable to see when user logged in via VSCode
I have a server that a few people log in to but I realized that when checking with last and lastlog that it doesn't list ssh done with VSCode but it works for people who use the terminal. How can I ...
0
votes
1
answer
105
views
Unmounted USB drive, plugged in but I need access remotely
I unmounted my 2TB Samsung SSD, before I went on holiday (meaning to bring it with me but I forgot). I have remote SSH access but I can't find a way that will work for an up-to-date kernel (OpenSuse ...
0
votes
0
answers
29
views
HAproxy 2.6.12 TCP LB with NoMachine NX servers (SSH-like)
I tried to install HAProxy 2.6.12 in TCP mode to do load balancing (round robin) between 2 NoMachine 8.16.1 ECS (Enterprise Cloud Server) accepting NX protocol (SSH-like).
NoMachine is a remote ...
0
votes
1
answer
232
views
AlmaLinux 9 : How to set up existing SSH keys for root (Or rather, why is this current set up not working?)
I have an Alma Linux 9 server machine with SSH root access through a custom port.
The access is fine but should be with SSH Keys.
We have keys, but we need to give the Public Key to the AlmaLinux ...
0
votes
0
answers
63
views
Arch Linux - rsync succeeds but prsync does not work
I am moving a large number of files from one PC to another. The two PCs are in 192.168.0.0/24. I started by ryncing all music I had on my source PC to my new PC.
> rsync -P --recursive 192.168.0....
0
votes
1
answer
125
views
SSH Stuck waiting for reply after offering public key
Info
I have 2 remote machines, both are Linux and same OS version.
When I tried to SSH to the machine as one of the user inside via public key, machineA works but machineB get stucked after offerring ...
2
votes
2
answers
486
views
Receiving " syntax error near unexpected token `then'" from remote Linux server with if, then, fi
I need help in determining why I get
syntax error near unexpected token `then'
from the following command:
for vm in {20..30} ; do ssh -q -o "StrictHostKeyChecking no" 192.168.210.${vm} &...