Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [sshd]

sshd is the SSH daemon which responds to incoming requests. Do not use this tag for questions about Solid-state hard drives! They should be tagged with "hybrid-storage" tag.

Filter by
Sorted by
Tagged with
0 votes
1 answer
70 views

SSH login to Windows 10 not possible with a admin account

I am trying to establish an SSH connection from a VirtualBox Ubuntu2204 guest to Windows 10 host via ssh using public key. I can do it when I use a non-admin account, but it fails with an admin ...
Alexander Kessler's user avatar
0 votes
0 answers
40 views

ssh between two docker containers on different nodes

Hi I am trying to create (preferably passwordless) ssh connection between two docker containers (named master and worker_1) on mulitple nodes and having difficulties. These are the options I tried so ...
aneela's user avatar
  • 111
0 votes
0 answers
52 views

Ensure sshd is running after update/restart

Sometimes when I update and restart a beaglebone with Debian, it's not reachable with ssh anymore, and somehow stuck, e.g.: I can ping the machine nmap shows port 22 as filtered netcat shows nothing ...
elsamuko's user avatar
  • 271
0 votes
2 answers
30 views

sshd Match on the type of pubkey being use by the authenticating user (Match PubkeyAcceptedAlgorithms)

I want to detect what type of ssh pubkey is being used by a user and do a Match Statement on it in sshd_config. The goal is to prevent using pam if a Secure Key (https://man.openbsd.org/ssh-keygen#...
perrze's user avatar
  • 1
0 votes
0 answers
84 views

ssh_host_rsa key with two sshd configurations

I have a system on which passwordless SSH and SFTP has been working for years, no issues. I now have an important application that needs SFTP, but the hitch is that this application does not currently ...
Dennis 's user avatar
  • 143
0 votes
0 answers
56 views

X11 forwarding on SDDM

I am trying to forward X11 from my PC (server) to my laptop (client). I allowed X11 forwarding in my sshd_config. Running ssh user@ip -X returns Warning: untrusted X11 forwarding setup failed: xauth ...
Player_X_YT's user avatar
3 votes
1 answer
851 views

How to properly secure harden SSH in 2024?

Since 1995, SSH, notably OpenSSH server [1999], is one of those essential services like DNS [1985] for admins to manage their IT landscapes. How do I properly secure harden an OpenSSH server in 2024? ...
user418615's user avatar
4 votes
1 answer
286 views

CURL fails with exit code 18 for SFTP with just few bytes remaining for file sizes less than120KB , but not when I add strace to sshd

There is weird issue with curl in Amazon Linux 2 server. It fails with exit code 18 with just about ~1MB bytes to read. So to troubleshoot the issue, I have setup local SFTP server. so my curl command ...
GP92's user avatar
  • 287
1 vote
1 answer
60 views

Solaris shd_config file resets after restart of ssh - how to prevent this?

How do i avoid this happening, i need the sshd_config file to contain Subsystem sftp /usr/lib/ssh/sftp-server oot@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# echo "Subsystem ...
Ray's user avatar
  • 111
-2 votes
1 answer
117 views

Where does the command "ssh-keygen -A" generate host keys?

I tried to start sshd and saw an error message as follow. # sshd: no hostkeys available --exiting And did some search and found I need to run the command "ssh-keygen -A" to generate default ...
user1339750's user avatar
1 vote
0 answers
132 views

Why does incoming SSH on macOS Monterey stop working but is fixed temporarily by restarting sshd?

I have been allowing incoming ssh on one of my home machines for many years without incident. Recently it stopped working. I have discovered that it can be fixed by restarting the sshd process, using ...
Jeffrey B Mulligan's user avatar
2 votes
2 answers
452 views

MacOS Catalina remote login via password-less SSH suddenly stopped working

I have a 2013 MacBook Pro that's been maxed out at MacOS 10.15.7 (19H2026) for quite a while now. It's configured to accept password-less SSH connections. A couple of days ago, out of the blue, when I ...
Chap's user avatar
  • 191
1 vote
0 answers
94 views

ssh linux to windows fails, Connection reset

I have set up the sshd server in windows 11 as in the official documentation. I have transfered my public key to the windows machine to C:\ProgramData\ssh\ as administrators_authorized_keys and ...
Kauabanga's user avatar
1 vote
0 answers
30 views

Is it possible to display "visual client keys" in the sshd log?

I found recently that the ssh VisualHostKey setting is very useful for server "users" to determine that their host is the correct host, but is there a way to log the "visual key" (...
Lazerbeak12345's user avatar
0 votes
0 answers
66 views

There is better solution than simple port forwarding from my router to my internal system?

If I forward a port from my router to one of my internal system's ssh port, I start to get messages from the system of attempts with invalid password, invalid user, etc. I assume that someone is ...
pedz's user avatar
  • 118
0 votes
1 answer
64 views

How can I setup 2 VPS can connect without using VPN which those VPS has already setup the ListenAddress to the VPN

I have 2 VPS, and those 2 VPS are setup OpenVPN, and we only can access it by connect to VPN, then ssh it to VPN gateway itself. I set it up from sshd_config by adding ListenAddress. here's the ...
Hakim's user avatar
  • 1
0 votes
0 answers
277 views

Unable to SSH into localhost on MacOS Big Sur (11.7.3) --> kex_exchange_identification: Connection closed by remote host

I am new to learning about SSH configuration on a Mac. Remote login has been enabled via System Preferences -> Sharing -> Remote Login: On Allow full disk access for remote users: Yes Allow ...
slsu's user avatar
  • 1
1 vote
1 answer
1k views

Listing host's available ssh ciphers from client

Is there a way for a client to check available SSH ciphers and algorithm without using NMAP? I have configured my sshd_config to disable some cipher and algorithm found by my security team. Just wanna ...
Rick Brian's user avatar
0 votes
1 answer
154 views

sshd_config seems to ignore AuthorizedKeysFile directive

I wan to stop users using ssh-copy-id to a server In my sshd_config I have set AuthorizedKeysFile /etc/ssh/global_authorized_keys I confirm it has been read by sshd -T | grep -i authorizedkey ...
Jeremy Ardley's user avatar
4 votes
0 answers
454 views

How to troubleshoot a long delay when connecting over SSH?

SSH'ing to my Linux workstation from my Mac laptop works totally fine, except that there is sometimes a very long delay before I see a prompt. If I try again then it's fast like normal, but a few ...
jacobsa's user avatar
  • 161
0 votes
0 answers
58 views

Almalinux9 SSH port change is not accepting connections

can someone please give a hint what else may be wrong. System Almalinux9, located at VPS. I wanted to change a port of SSHD to 60022, but when i try to connect to it, it does not respond anyhow when i'...
OddStan's user avatar
0 votes
0 answers
348 views

Windows Server 2019, SSH server, max number of connections or concurrent users?

We are using Win2019, and enabled the built-in SSH server. We have different client devices (each with different IP addresses) connecting to this SSH server. We would like to know, on the Win2019 SSH ...
lg34576's user avatar
1 vote
1 answer
643 views

Cannot restart SSH after adding host entry in sshd_config

What am I doing wrong? I added within /etc/ssh/sshd_config: Host myserver HostName xxx.xxx.xxx.xxx User myuser Port 22 When I try to restart sshd, I receive error: $ sudo systemctl ...
Frank Martin's user avatar
2 votes
3 answers
303 views

ssh_config matching rules

I am trying to set up connection to [email protected] via powershell terminal (with config located in .ssh\config) without proxy, however, I want to keep being able to connect to ...
Peter's user avatar
  • 23
0 votes
0 answers
118 views

inner SSH Server in docker container to get X11 Forwarding in a password-disabled AWS SSH server

My company provides an AWS Ubuntu server for software development (primarily for compiling the code). We provide the public ssh key of our laptops to the IT department, and they create an account ...
Qiao's user avatar
  • 111
3 votes
1 answer
3k views

How to configure powershell for OpenSSH instead of cmd

I have a Windows 10 Pro machine that I can ssh into (OpenSSH Server is installed/running) as cmd. I want to have the shell as powershell.exe (not the default of cmd.exe). I tried setting the ...
Intrastellar Explorer's user avatar
1 vote
0 answers
141 views

How to disable local port forwarding only in SSH authorized_keys file?

This question is related to this one, here, but the accepted answer for that question does not actually answer the question and is inaccurate, as pointed out in this comment. Basically, I have a ...
jinscoe123's user avatar
0 votes
0 answers
105 views

Cannot configure MacOS sshd to accept signed certificates for authentication

We're adding some Mac Minis to our environment, and need them to allow SSH access via signed certificates, the same as we do on Linux. Unfortunately, it's failing. We have configured /private/etc/ssh/...
Swordgeek's user avatar
0 votes
1 answer
216 views

How to set PATH on MacOs for non-login shell?

On mac os, if I do ssh localhost 'md5sum --version' the md5sum command located in /usr/local/bin is not found. This path is listed in /etc/paths but this config file is not read by the shell because ...
Fractale's user avatar
  • 657
1 vote
0 answers
133 views

SSH connection dropping immediately after authentication in Ammonite sshd

I realize this question (or similar ones) have been asked elsewhere, but the solutions haven't worked for me. I'm trying to use ammonite in a scala/java project locally and start the SSH server with ...
Jacob Bennett's user avatar
1 vote
1 answer
815 views

systemd brings up sshd before networkd, causing no ssh service

On my Ubuntu 23.04 system, systemd will attempt to bring up sshd before the network's bridge is brought up by systemd-networkd First it reports: Cannot assign requested address And then: br0: netdev ...
Bram's user avatar
  • 227
1 vote
2 answers
416 views

sshd server: match a subdomain name of a client and not just IP of that client

using openssh 9.2 for security I am using match to restrict clients who may access the ssh server Match Address 10.0.0.30 PubkeyAuthentication yes this works fine but since this client machine ...
DKebler's user avatar
  • 198
0 votes
1 answer
1k views

How do config that an SFTP user can access two root folders on different drives from OpenSSH Windows Server?

SFTP user is a service account so we cannot create 2 separate service accounts per employee. One service account is under group service 'Users' and 'Admin-Users' then it should be able to access the ...
Snowprincez Coffee's user avatar
0 votes
0 answers
226 views

SFTP account unable to log in the disconnect network drive on Windows server

We migrated the method for transferring files from any sources from FileZilla Server (Port 21) to SFTP Server (Port 22) due to security policy. FTP account with port 21 can log in to the folder ...
Snowprincez Coffee's user avatar
1 vote
1 answer
2k views

windows openssh server authentification fails with correct password

I have 2 computers, one is windows 10, the other is macos 10.15.7. I try to login my windows 10 from my mac with ssh laptop-qjn9a0b1\[email protected]. Again and again, it said Permission denied, ...
Tokubara's user avatar
  • 123
0 votes
2 answers
136 views

How to debug a failure to communicate (via SSH) for just the root account

I have a host (named giggles) whose root account does not accept incoming SSH connections. It has a user (kevin) account that does. Moreover the two accounts have exactly the same credentials for ...
4Dummies's user avatar
  • 183
1 vote
2 answers
3k views

How to disable RSA and ECDSA keys in openssh-server on Fedora Linux

I read that RSA and EDCSA algorithms are inferior to Ed25519 in terms of speed and space, and for my small Beowulf cluster, I'd like to just use Ed25519. However, when I try to remove, truncate, or ...
4Dummies's user avatar
  • 183
0 votes
1 answer
1k views

Cannot login through ssh from same lan

I have two CentOS7 servers on the same VLAN. I can ping the destination from the source server but cannot ssh to the destination : source # ping -c5 destination PING 172.16.15.101 (172.16.15.101) 56(...
SebMa's user avatar
  • 1,843
1 vote
1 answer
209 views

Trying to setup SSH key pair for root

Setting up SSH keys for root (technically ed25519 keys). Created the key pair on server I want to logon FROM and put the pub key onto the authorized key file of the server I want to connect TO. I can ...
Benjamin W Larson's user avatar
1 vote
1 answer
697 views

Logic operators in AllowGroups in sshd_config

Is it possible to use logical operators in AllowGroups in sshd_config? The thing I want to achieve is to permit user to access server only when it belongs to two groups. ChatGPT gave me this answer, ...
sp33dy's user avatar
  • 11
1 vote
0 answers
354 views

OpenSSH sshd.exe does not start with KexAlgorithms parameter

Running OpenSSH Server 8.1p on Windows Server 2016 DC When I add the parameter "KexAlgorithms" in the sshd_config, the service fails to start. I want to add legacy support for key methods ...
Daryl's user avatar
  • 11
1 vote
2 answers
2k views

sshd can't disable password aunthentication

I just rented a VM from Hetzner, I created a new VM of Ubuntu 20.04.5 LTS and I put my ssh key upon its creation so I could log into the machine directly and it worked. However, when I was trying to ...
Zhenyu BAI's user avatar
0 votes
0 answers
30 views

SSH from Windows10 to Windows10 on lan, not able to use DIR command

When using OpenSSH from Win 10 to Win 10 laptops on local network - I am not able to view hidden files and folders. The Dir command behaves different between being on the local laptop and on the ...
mortenlund's user avatar
0 votes
1 answer
128 views

Using augtool, how do you add an SSH subsystem, or update a subsystem if already present?

Given an sshd_config file that contains the following config: Subsystem sftp /usr/lib/openssh/sftp-server Subsystem fooftp /usr/lib/openssh/fooftp-server Subsystem barftp /usr/lib/openssh/barftp-...
Graham Leggett's user avatar
1 vote
0 answers
195 views

Slackware 15: Google Authenticator configuration issue / Access Denied

I am trying to install Google Authenticator on Slackware 15 and I seem to be stuck. My steps were: Installed google authenticator Added in /etc/pam.d/ssh the following line at the top of the file ...
John J's user avatar
  • 11
1 vote
0 answers
1k views

ssh login failed with public key

I use publickey to do ssh login and failed. Here is my sshd config, sshd logs. sshd config: Port 1046 Protocol 2 PermitRootLogin no ChallengeResponseAuthentication no PasswordAuthentication no ...
Leslie__Joe's user avatar
2 votes
0 answers
138 views

Centos7 password based Authentication failing

Successfully joined AD server: id [email protected] Got the results so the user exists: ssh [email protected]@XXX.XX.XXX.XXX Error: debug3: send packet: type 50 debug2: we sent a password ...
raushan sharma's user avatar
3 votes
2 answers
16k views

How to SSH from MacOS terminal to Ubuntu 22.04. No matching host key type found

I'm not able to login to Ubuntu 22.04 which I newly installed from MacOS terminal. Here is the error I get while trying to SSH to ubuntu QWERTY-M-91FL:~ qwerty$ ssh [email protected] Unable to ...
mac's user avatar
  • 133
0 votes
0 answers
308 views

Turning off PermitRootLogin in sshd prevents any user to connect

I have a Debian bullseye virtual machine in OVH cloud. Allowing ssh login as root is non-secure, so I decided to turn it off in /etc/ssh/sshd_config by commenting out the line PermitRootLogin yes. ...
Dmitry K's user avatar
0 votes
1 answer
465 views

Fedora SSHd not starting after upgrade to 35

today I've upgraded a VM server mounting Fedora 25 to Fedora 35. I performed a step upgrade skipping 1 release at a time 25-->27-->...-->33-->35. I had zero problems until the last upgrade,...
Marco Colussi's user avatar

1
2 3 4 5
8