People who code: we want your input. Take the Survey

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
0answers
27 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 ...
0
votes
0answers
8 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 ...
0
votes
0answers
12 views

Failed ssh Logins on User Not Met Requirement

We have a RHEL 7.5 server and we have been getting the following failed login alerts (extract below with some names removed). Apr 23 11:07:38 SERVERNAME sshd[16407]: pam_succeed_if(sshd:auth): ...
0
votes
0answers
122 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 ...
0
votes
1answer
22 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'...
1
vote
1answer
22 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....
0
votes
1answer
26 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
14 views

sshd is available if run in iPhone's Hotspot, but not in router's network

My goal is to control my Windows 10 desktop computer via iPhone using SSH in my local network. So I installed OpenSSH Server feature, configured sshd as told in this Microsoft article and started up ...
1
vote
1answer
130 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 ...
1
vote
1answer
32 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 ...
0
votes
0answers
19 views

SSH intense tunneling causes sshd service to close the connection, while manually running /usr/sbin/sshd doesn't

SSH server runs Centos 7, and I'm connecting to it from Windows 10, via Putty. I had to workaround some VPN settings, so a great number of SSH tunnels are set (something like 2000 combinations among ...
2
votes
0answers
84 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 ...
0
votes
1answer
1k 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 ...
0
votes
2answers
98 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/...
0
votes
0answers
17 views

Fail2Ban fails to Ban

So I have a server online and I am using Fail2Ban to ban IPs that are bruteforcing my server. I did some testing today, and it seems that isn't the case. Let's start from the beginning. > sudo ...
0
votes
1answer
71 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 ...
0
votes
0answers
42 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 ...
0
votes
0answers
24 views

How do I kill user sessions listed in 'who' but not in 'w'

I can't seem to find pts/47 and pts/78 anywhere other than who. # who root pts/106 2020-09-04 15:17 (c-69-243-xx-xx) root pts/112 2020-09-04 17:30 (c-69-243-xx-xx) root pts/113 ...
3
votes
1answer
605 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 ...
0
votes
0answers
84 views

Completely remove/uninstall openSSH from Mac

I have installed openSSH on my Mac and unfortunately, it's intruding in my previous tasks. I would like to completely remove it but it still exists. I have searched for openssh keyword and deleted all ...
0
votes
1answer
131 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 ...
0
votes
1answer
27 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: /...
0
votes
0answers
545 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 ...
1
vote
0answers
44 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 ...
3
votes
1answer
1k 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 ...
1
vote
1answer
95 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:...
0
votes
0answers
37 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 ...
0
votes
0answers
2k 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 ...
1
vote
1answer
878 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 ...
2
votes
1answer
72 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 ...
0
votes
2answers
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....
0
votes
1answer
75 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\...
2
votes
2answers
1k views

Windows 10, sshd.exe missing

According to this, OpenSSH is now part of Windows. The executable files are in C:\Windows\System32\OpenSSH, and indeed I could see them on my system. However, sshd.exe is not there. Does anyone know ...
0
votes
1answer
61 views

SSHd of Linux Server keeps on getting failed and recovered every few hours

I am using Digital Ocean's Droplet Linux server, with Cpanel. It was all ok but now we are receiving continuous mails every 2 hours from Cpanel with title, "[Hostname] FAILED ⛔: sshd (Server IP ...
3
votes
1answer
739 views

Should I be worried about /bin/sync when exposing my SSHD server to the internet?

I'm preparing to expose my server to the internet and would like to be as secure as I can be. I've taken security through obscurity measures such as changing from the default port 22, I've made sure ...
0
votes
1answer
45 views

Does php script executed by user count as alive session?

Let's say I set in sshd_config ClientAliveInterval 900. Will the system disconnect me if I run some script for 16 minutes?
0
votes
1answer
164 views

Global SSH key, working for root user but not for other users

I am trying to set up a global ssh key, that will allow me to log into any account with just one key. So far added a global directory /etc/ssh/authorized_keys to the Authorized_Keys section of the ...
0
votes
1answer
494 views

SSH asking user password when connecting on a port

I have a computer C SSH reverse tunnelled to server B at port X. Now I want to connect from computer A to computer C via B at port X. When I do normal SSH from computer A to B as: ssh -i KEYA ...
2
votes
1answer
1k views

Openssh Service not working | Windows 10

I installed OpenSSH on windows 10 which is using Kaspersky as my security suite. When I start the openssh server in powershell on the default port 22 everything works fine. I am able to log into my ...
0
votes
0answers
93 views

How to get uid from ssh certificate attribute

I'm working on deployment of ssh certificates instead of just public keys in my organisation. My goal is to keep uid the same for each user across the infrastructure and I think the best way to ...
1
vote
2answers
2k views

Login to SSH with no password and no ssh-key?

Mission : Let's say my remote server's firewall is configured to allow only my specific home IP to connect to port 22 and because of this I am not worried about security for this test. And maybe I ...
6
votes
2answers
16k views

How to restart ssh service on macOS?

How to restart SSH in Mac Pro? When I used: sudo service ssh restart its shows: Command not found
1
vote
1answer
2k views

Putty SSH Tunnel Portforwarding not working with remote MongDB database

I'm having trouble connecting to a remote database server. I'm on a Windows 10 client and can successfully connect to my Ubuntu 16 server with putty over SSH, including with a keypair. Now I have a ...
3
votes
1answer
529 views

Command to disable password login via ssh?

So, I am aware I can disable password authentication via ssh by modifying /etc/ssh/sshd_config by changing PasswordAuthentication Yes to PasswordAuthentication no. I want to ensure ssh logins can only ...
1
vote
1answer
610 views

SSH user not getting authenticated through kerberos

I have setup kerberos in my ubuntu machine and I am able to get tickets for users via kinit from my other Fedora Linux client machine. But getting below error in sshd debug logs, no idea what it ...
0
votes
0answers
56 views

SSH indruder trap

I would like to know if anyone has ever implemented a SSH trap. It would be interesting to set up a system where if someone was to port scan my computer they would find my SSH port open(port 22) and ...
0
votes
0answers
50 views

Issues SSHing into my machine

So I've been trying to have an accessible SSH server from home, and I opened the SSH port so that It would be accessible from the internet. When I log in through my LAN IP address, everything goes ...
0
votes
1answer
708 views

freenas sshd port forward open failed: administratively prohibited

I have a freenas server with an ssh port open to the internet. I want to access a server within the network the nas is in, so I used an ssh port forward like this: ssh -N -L 8080:host:80 root@freenas....
1
vote
1answer
513 views

Removing SSH key for user / i.p. address to server running OpenSSH/sshd

I recently had some issues with upgrading my distro to the latest LTS and allowed my local admin to log into my laptop via ssh, using my username and gave them root access. While this was helpful, I'...

1
2 3 4 5
7