Questions tagged [sshd]

The Secure Shell (SSH) daemon. It is the server side process to which SSH clients can connect and invoke commands and services. Note that system administration questions are off-topic on this site.

SSHD is an acronym for Secure Shell Daemon, the OpenSSH SSH server. It is the server side process to which SSH clients can connect and invoke commands and services.

Use instead if your question is not specifically about the daemon, but (also) about the client or the protocol.

Note that system administration is off-topic on Stack Overflow. If your question is not a programming question, ask on Unix & Linux (if running under Linux or other unix system), Super User (if you aren't a professional system administrator) or Server Fault (if you are a professional system administrator).

Useful Links:

The acronym is occasionally used to refer to Solid State Hard Drives, more commonly abbreviated .

392 questions
111
votes
2 answers

ssh connection refused on Raspberry Pi

I realize this question has already been asked in some different ways, however it doesn't seem like any of the ways I've come across have worked to fix this problem, so here it goes: I'm trying to connect to my raspberry pi 3 raspbian setup via ssh…
Matt
  • 1,159
  • 2
  • 8
  • 7
73
votes
16 answers

How can I fix "kex_exchange_identification: read: Connection reset by peer"?

I want to copy data with scp in a GitLab pipeline using PRIVATE_KEY. The error is: kex_exchange_identification: read: Connection reset by peer Connection reset by x.x.x.x port 22 lost connection Pipeline log: $ mkdir -p ~/.ssh $ echo…
Mohammad Reza Mousavi
  • 894
  • 1
  • 10
  • 18
69
votes
1 answer

In SSHD Configuration what does "MaxStartups 10:30:60" mean?

Problem Is: Some SFTP connections are failing in customer environment But using sample code if i test with same server no connection is failed. may be in customer envi many parallel sftp connection started at a time. I Want…
Syedsma
  • 1,183
  • 5
  • 17
  • 22
53
votes
9 answers

Start sshd automatically with docker container

Given: container based on ubuntu:13.10 installed ssh (via apt-get install ssh) Problem: each when I start container I have to run sshd manually service ssh start Tried: update-rc.d ssh defaults, but it does not helps. Question: how to setup…
Dmitry Erokhin
  • 863
  • 1
  • 7
  • 14
42
votes
13 answers

SSHD Gives error could not open Authorized Keys, although permissions seem correct

I'm unable to login to SSH because of the following error in /var/log/secure (according to the debug logs): Dec 19 18:01:05 hostname sshd[25119]: debug1: trying public key file /root/.ssh/authorized_keys Dec 19 18:01:05 hostname sshd[25119]: debug1:…
newUserNameHere
  • 17,348
  • 18
  • 49
  • 79
29
votes
2 answers

Create a SFTP user to access only one directory.

I need to create a user which can only SFTP to specific directory and take a copy of some infomation. that is it. I keep looking online and they bring up information about chroot and modifying the the sshd_config. So far I can just add the user…
28
votes
5 answers

Running qemu remotely (via ssh)

I have a server that I am experimenting with, and sometimes I want to work from home so I installed the 'ssh daemon' (namely, 'sshd') and I can ssh to the server. This works fine. But when I try to run a virtual machine on the server with 'qemu', I…
Ramzi Khahil
  • 4,932
  • 4
  • 35
  • 69
26
votes
5 answers

Unable to start cygwin sshd service

I entered ssh-host-config into the cygwin prompt (started with admin privileges), said yes to privilege separation, new local account sshd, install sshd as a service; I entered no value for CYGWIN for daemon; I entered no for using a different name;…
Matthew Moisen
  • 16,701
  • 27
  • 128
  • 231
24
votes
1 answer

Ansible Service Restart Failed

I've been having some trouble with restarting the SSH daemon with Ansible. I'm using the latest software as of May 11 2015 (Ansible 1.9.1 / Vagrant 1.7.2 / VirtualBox 4.3.26 / Host: OS X 10.10.1 / Guest: ubuntu/trusty64) tl;dr: There appears to be…
Steven Liao
  • 3,577
  • 3
  • 19
  • 25
21
votes
6 answers

Where to find sshd logs on MacOS sierra

I want to install Pseudo-Distributed HBase environment on my Mac OS Sierra (10.12.4), and it requires ssh installed and can log with ssh localhost without password. But sometimes I came across with error when I use ssh to log in. Above all are…
Zongshu Lin
  • 299
  • 1
  • 3
  • 8
21
votes
6 answers

Error 1067- on start OpenSSH by net start opensshd in windows cmd

I try to start opensshd app by following command line: net start opensshd but i encounter below message after press enter in CMD: The OpenSSH Server service is starting. The OpenSSH Server service could not be started. A system error has…
user6209804
21
votes
4 answers

SSH – Force Command execution on login even without Shell

I am creating a restricted user without shell for port forwarding only and I need to execute a script on login via pubkey, even if the user is connected via ssh -N user@host which doesn't asks SSH server for a shell. The script should warn admin on…
Iacchus
  • 2,671
  • 2
  • 29
  • 24
14
votes
1 answer

apache mina sshd authenticate client signatures

I'm trying to authenticate a signature that clients generate from their private key and send to the server. The only authenticator I could find in the library that sounded appropriate was the PublickeyAuthenticator. Please correct me if this is the…
Hooli
  • 1,135
  • 3
  • 19
  • 46
13
votes
5 answers

Ansible: insert a single word on an existing line in a file

I have to use Ansible modules in order to edit the /etc/ssh/sshd_config file - every time I create a new user I want to append it at these two lines: AllowUsers root osadmin AllowGroups root staff At this moment I'm using the…
Alexandra Ivan
  • 227
  • 1
  • 3
  • 9
13
votes
2 answers

Why the sshd service is unrecognized?

I'm trying to install hadoop, and I need to restart the sshd service in order to configure the connection between the nodes... However, whenever I write: service sshd restart a message error will be displayed telling me that this service is not…
Dhoha
  • 369
  • 3
  • 6
  • 17
1
2 3
26 27