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
0 answers
10 views

Remote Login not starting

I'm new to Mac and I'm trying to set up SSH through the Remote Login setting in Sharing settings on my Mac Mini running Catalina version 10.15.7. When I click the Remote Login option, it shows "...
user avatar
  • 1
0 votes
0 answers
46 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. ...
user avatar
0 votes
0 answers
24 views

openSSH windows can't connect without password [duplicate]

I'm trying to connect to windows via ssh. My account on windows doesn't have password set, but when i'm trying to do ssh -p 22 username@localip it asks for password, and when i just press enter it ...
user avatar
0 votes
1 answer
57 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,...
user avatar
0 votes
1 answer
57 views

How can I assign an ephemeral port range to a specific linux service and not the entire IP stack

For example: If I want sshd to listen on 22 but use ephemeral ports of tcp 50-60 for communication.
user avatar
0 votes
0 answers
294 views

SSH slow login and slow typing from Ubuntu SSH and Windows Putty clients over wireless only

I have a Raspberry Pi cluster of 3 Raspberry Pis, each running Ubuntu Server 20.04 on my home network (192.168.0.n). Each Raspberry Pi has a static IP assigned through Netplan configuration. When ...
user avatar
0 votes
0 answers
229 views

SSH client works only when cipher is specified

When I try to connect to remote host using command ssh -vv hostname, it hangs for a while, then closes connection. I can connect though if I specify following command: ssh -c aes128-ctr hostname The ...
user avatar
0 votes
1 answer
22 views

SSH into Namecheap shared host

I'm trying to connect to my Namecheap shared host server via SSH I imported the pub/private key and authorized it like so: Let's VM IP = 11.11.11.11 When I SSH, I kept getting ➜ Desktop ssh webedcwp@...
user avatar
  • 396
0 votes
0 answers
100 views

How do you successfully setup SSH so you can connect to the same host from two different clients?

There are a lot of posts about this type of stuff but I haven't been able to find an answer that works for me... I have an SSH server setup on a Ubuntu machine at home. I was able to setup no password ...
user avatar
0 votes
1 answer
23 views

Azure VM disables ssh with password

I want to create an Azure VM image that allows logging in with a password via SSH. I have an Azure Ubuntu VM, which I configure to allow password SSH (updating /etc/sshd/sshd_config appropriately). I ...
user avatar
  • 582
0 votes
0 answers
50 views

Configuring sshd on Windows 10, without having to set "StrictModes no"

I know next to nothing about Windows systems, and the person I did it for knows very little technical about it, but I managed to enable and configure sshd on it. The public key had to be put into the ...
user avatar
0 votes
1 answer
124 views

How do I prevent orphaned `sshd` processes on the server end?

I have a number of processes on client machines that ssh to server machines and do things. Sometimes those client processes end unexpectedly for whatever reason. This always leaves an sshd process ...
user avatar
  • 103
0 votes
0 answers
17 views

How to enable non-root login in rockylinux8?

I would like to use the official docker image rockylinux/rockylinux:8 as a jenkins agent. I add a couple of things and run it in a container. I expected the Jenkins Manager to be able to ssh to this ...
user avatar
  • 421
0 votes
1 answer
24 views

How to create tunnel from your local windows machine to remote windows server

I have a jump host at my work environment, what have access to some specific servers like san drive and few web based dashboards are only accessible from this server. Every time i have connect to ...
user avatar
0 votes
1 answer
87 views

ssh: too many connections in short succession?

I'm running a backup server using rsnapshot, which uses rsync, which uses ssh to connect to the hosts from which to gather data. Usually, everything works fine. I run in to issues, however, if very ...
user avatar
0 votes
1 answer
42 views

Debian 10 - OpenSSH-Server How to redirect user login info to a different logins file?

Debian 10 + OPENSSH-SERVER 7.9 I have a remote server that connect to my local server every minutes and in the local server's syslog, every minute I have: Oct 11 18:22:01 localhost systemd[1]: Started ...
user avatar
0 votes
0 answers
27 views

How to setup two different configurations for two listenaddresses in sshd

I have the following setup: a Linux machine has two IP addresses (primary and secondary) on the same network. One receives requests NAT forwarded from outside by the router/modem, the other one ...
user avatar
0 votes
1 answer
74 views

Reverse SSH tunnel failing to open local port on remote host?

I am using the following reverse SSH command to try and open up a reverse SSH tunnel on a CentOS 7 host back to a Debian 10 host. ssh -p 20000 -NR 20050:localhost:22 user@ipaddress When I try this ...
user avatar
0 votes
1 answer
375 views

When is it better to use ssh-keyscan instead of ssh to manage known_hosts?

When is executed ssh -i id_rsa_something remoteuser@192.168.1.2 appears: The authenticity of host '192.168.1.2 (192.168.1.2)' can't be established. ECDSA key fingerprint is SHA256:ABCABC [fixed/...
user avatar
0 votes
0 answers
39 views

SSH - known_hosts file generation content behavior

When is executed ssh -i id_rsa_something remoteuser@192.168.1.2 appears: The authenticity of host '192.168.1.2 (192.168.1.2)' can't be established. ECDSA key fingerprint is SHA256:ABCABC [fixed/...
user avatar
0 votes
0 answers
43 views

SSH connection on a redhat server

I have been struggling for the past few days trying to get an ssh connection working with a public rsa key on a redhat ftp server. I have been following guides such as this one with little luck:https:/...
user avatar
0 votes
1 answer
371 views

SSH Using YubiKey 5 and ED25519 Algorithm

I am starting to use a YubiKey 5 to ssh into remote boxes instead of using a software key. I am generating the keys using this command: ssh-keygen -t ed25519-sk This works when I ssh into Ubuntu, but ...
user avatar
  • 103
1 vote
1 answer
261 views

Windows OpenSSH sshd: can't get passwordless authentication to work

I am trying to configure OpenSSH as an ssh server (sshd) on Microsoft Windows 10, as described here: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement The ...
user avatar
  • 11
0 votes
0 answers
835 views

Problems trying to keep SSH session alive "forever"

I know there are many questions/articles about this topic. But... I tried a bunch of them and nothing seems to make my SSH connection alive "forever". I'm currently working from MacOs BigSur ...
user avatar
  • 1
0 votes
0 answers
67 views

sshd startup problems on debian

I try to start up the ssh daemon on my kali linux (virtualbox) but I get this error when I enter "sudo service ssh start": Job for ssh.service failed because the control process exited with ...
user avatar
1 vote
1 answer
418 views

Cygwin SSHD causes 100% CPU load

I run cygwin 32-bit on Windows 10 Pro b19042 [Cygwin is 3.2.0-1], with OpenSSH [8.5p1-1], using sshd to access the machine from afar, and notice (often multiple) processes of sshd.exe with 100% CPU ...
user avatar
  • 213
1 vote
1 answer
545 views

ssh works when sshd ran from command line, but not as a service

As the title says, when I run sshd from the command line (C:\Windows\OpenSSH\sshd.exe) my passwordless login to localhost works flawlessly, but if I run it as a service (double checked the path and it'...
user avatar
  • 111
1 vote
1 answer
515 views

Automatically run commands after SSH login to Windows server

Is there a way to run commands automatically when user logs in with SSH to Windows Server? I tried to implement this using the AutoRun in Command Processor registry, which runs commands when any cmd....
user avatar
0 votes
1 answer
138 views

Failed to Load ECDSA P521 Host Key on Windows SSH Server

I am trying to generate an ecdsa p521 host key on my Windows 10 SSH Server as my client only supports ecdsa 521 key. Thus, I have used the following steps but I failed to load the p521 host key from ...
user avatar
0 votes
0 answers
24 views

System not terminating SSH session when my ISP disconnects

I have two ISP connections. The primary connection has got some disconnection issues these days. When the primary ISP does not respond, I switch to the backup internet connection and it supposed to ...
user avatar
  • 103
3 votes
1 answer
655 views

Adding parameters to DefaultShell in Windows OpenSSH Server (e.g. powershell.exe -NoLogo)

I have Windows OpenSSH server installed and working properly. I can change the default shell that is ssh'd into using HKLM:\SOFTWARE\OpenSSH and adding a DefaultShell property as described here. So ...
user avatar
  • 7,757
1 vote
1 answer
42 views

Control ssh server “dynamically” and serve in different ports

I have a Linux machine that runs Garuda Linux. I want to control my SSH server as I want without interrupting (restarting). For example I want to disable/enable X11 forwarding, disable/enable root ...
user avatar
  • 11
2 votes
0 answers
185 views

ssh localhost: Permission denied (publickey) Ubuntu on WSL2

Previously asked this question on askubuntu.com and unix.stack but I'm getting quite desperate so I'm asking here again: I'm having trouble "sshing" to localhost and getting a permission ...
user avatar
2 votes
1 answer
6k views

sshd_config options: `PermitTunnel` vs `AllowTcpForwarding`

I have trouble understanding the PermitTunnel option in the sshd_config file. How is this option related to the AllowTcpForwarding? Having PermitTunnel no does not seem to have any effect on tunneling ...
user avatar
  • 145
0 votes
2 answers
352 views

sshd refuses public key even though matched in authorized_keys ( Authentication failure )

I've check the similar post but none really helping. Anyone have idea about this? Nov 20 13:08:06 ip-10-160-153-99 sshd_server[10408]: debug1: matching key found: file /home/user/.ssh/...
user avatar
0 votes
1 answer
134 views

SSH Key Not Auto Logging In

I'm trying to add my ssh key to a server so I don't have to enter the password when I ssh. I ran ssh-copy-id -i ~/.ssh/id_rsa.pub YOUR_USER_NAME@IP_ADDRESS_OF_THE_SERVER from this tutorial and I can ...
user avatar
0 votes
0 answers
110 views

Configure 2 sshd services

I have the following task: Configure a ssh service so that user special cannot connect through it. Open a ssh server on port 2222 listening to 127.0.0.1. Limit this service so that just user special ...
user avatar
3 votes
1 answer
734 views

SSH tunnel not working (Firefox for Mac --> remote Debian SSHD)

Running Firefox on a Mac. Debian SSHD running on remote computer. Firefox won't connect, not sure why. I am able to ssh into the remote system on the command line on port 44. Do I need to change ...
user avatar
  • 143
0 votes
1 answer
387 views

Why can I not ssh into RHEL 8.2 when sshd is running and port 22 shows it's open?

I installed RHEL 8.2 with a free developer license (bare hardware), it looks like sshd is installed, running by default with port 22 already open, I did not have to do anything to install sshd or open ...
user avatar
0 votes
1 answer
43 views

cygwin sshd fatal seteuid Invalid argument

recently I'm unable to connect to cygwin sshd server $ ssh 127.0.0.1 -vvvv OpenSSH_8.2p1, OpenSSL 1.1.1f 31 Mar 2020 debug1: Reading configuration data /cygdrive/c/Users/Gowtham/.ssh/config debug1: /...
user avatar
0 votes
0 answers
1k views

Getting permission error using sftp

I have setup an sftp server on my centos vm. I created a user nsftp within the group sftp nsftp:x:16025:16026::/archive:/sbin/nologin I also edited the /etc/ssh/sshd_config file: Subsystem sftp ...
user avatar
1 vote
0 answers
56 views

Windows10 no longer stays asleep after configuring sshd [duplicate]

I've had Windows 10 Home Edition running for a year and half without problems. I set up my PC's power button to put the OS into sleep mode. The other day I was trying to set up sshd. I used Windows ...
user avatar
  • 143
3 votes
1 answer
3k views

Received disconnect from xx.xx.xx.xx port 33598:11: Bye Bye [preauth]

Apparently my home server is getting checked out by a lot of bots online. I have daily more than 500 connection requests at port 11. Every attempt is performed only once a day for a specific IP ...
user avatar
  • 31
1 vote
1 answer
309 views

How can a remote ssh tunnel port be closed on the ssh server when the ssh command goes away?

I'm creating a tunnel from a client to a server like: ssh -N \ -o ConnectTimeout=9 \ -o ServerAliveInterval=5 \ -o ServerAliveCountMax=1 \ -o ExitOnForwardFailure=yes \ -R 0.0.0.0:10021:...
user avatar
  • 4,007
0 votes
0 answers
57 views

Adding a key with "ssh-add" works but passing it with "-i" doesn't

I have a case like follows: ssh -J${some-jump-host} -i some-key.pem opc@${some-ip} which does not ask for the key password for some-key.pem but directly fail as it is not authenticated. However, if ...
user avatar
  • 215
4 votes
0 answers
4k views

How do I change the allowed host key algorithms for SSH?

I am writing an application which uses the libssh library. I am trying to establish a connection from the client side where the app runs to the server. However, instead of connecting, I get an error ...
user avatar
  • 151
1 vote
1 answer
2k views

How can I get my Cygwin SSH server to log into a file?

On proper Linux systems, the SSH server typically logs into a file, e.g. /var/log/auth.log or /var/log/syslog etc. But - that doesn't exist on my Cygwin system; and merely editing /etc/sshd_config ...
user avatar
  • 7,392
2 votes
1 answer
245 views

Is sshd hard-coded to require root access?

I am attempting to run an SSH daemon as a non-root user, as I want to provide SSH access to our Git repositories on a server which I do not have root access for. I have got it to run using a custom ...
user avatar
  • 111
1 vote
2 answers
1k views

sshd config: Allow connections only from within the same private network

I would like to configure sshd so that any user inside the same private network is accepted, but everyone else is denied. Example: My IP address is 192.168.1.159, so anyone inside the network 192....
user avatar
  • 11
0 votes
1 answer
109 views

OpenSSH Server on Windows refuses logons. How do I fix?

My OpenSSH Server denies all login attempts, returning "permission denied" regardless of keyfile, password, etc. When started in debugging mode on the windows host, the server prints PS C:\Users\...
user avatar
  • 163

1
2 3 4 5
7