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
13
votes
4 answers

sshd with multiple match sections, override settings

I have the situation where sshd should permit sftp only access to a group of users. This is easily done by adding a match section like Match Group groupname ChrootDirectory /srv/ftp ForceCommand internal-sftp Now I need to exclude one user…
gurubert
  • 131
  • 1
  • 1
  • 3
12
votes
4 answers

RedHat 6/Oracle Linux 6 is not allowing key authentication via ssh

Keys are properly deployed in ~/.ssh/authorized_keys Yet ssh keeps on prompting for a password.
Olivier Refalo
  • 50,287
  • 22
  • 91
  • 122
12
votes
5 answers

pam_unix(sudo:auth): conversation failed, auth could not identify password for [username]

I'm using ansible to provision my Centos 7 produciton cluster. Unfortunately, execution of below command results with ansible Tiemout and Linux Pluggable Authentication Modules (pam) error conversation failed. The same ansible command works well,…
Lukasz Dynowski
  • 11,169
  • 9
  • 81
  • 124
12
votes
4 answers

sshd_config AllowUsers

I'm trying a very specific configuration for the AllowUsers directive that follows the logic below: Allow user1 to ssh from host1 Deny user1 to ssh from any other host Allow all other users from any host I've tried the following: AllowUsers…
user1967720
  • 155
  • 1
  • 2
  • 7
11
votes
3 answers

SSHD Java example

Can anyone point me to some example code for using SSHD to access a server and execute some commands from a JAVA application. I have looked through the Apache SSHD website and downloads and have not found anything useful yet as far as documentation…
astaubin
  • 305
  • 2
  • 7
  • 15
11
votes
3 answers

sshd preauth child terminated by signal 31

I upgraded to ubuntu 18.04 the other day, and since then I can't ssh to my machine again. The auth.log tells me this: Jan 15 08:41:15 pc207 sshd[5358]: Accepted publickey for oscar from 10.60.0.15 port 42004 ssh2: RSA…
Oscar
  • 734
  • 2
  • 7
  • 23
11
votes
3 answers

Has KeyRegenerationInterval any effect in SSH2?

I am setting up a new Linux-Server and I am editing sshd_config. I will use protocol version 2 (which is default anyway): Protocol 2 But in the default config-file I also find this two lines: KeyRegenerationInterval 3600 ServerKeyBits 768 Manpage…
Hubert Schölnast
  • 8,341
  • 9
  • 39
  • 76
11
votes
2 answers

How do I get AWS EC2 to not reset my sshd_config file?

I want to allow password logins to my EC2 instances. I know which line it is that controls this in /etc/ssh/sshd_config and what it should be set to. Specifically: PasswordAuthentication yes However, even when I've set this on a master image that I…
Octopus
  • 8,075
  • 5
  • 46
  • 66
9
votes
5 answers

Have sshd forward logins of git user to a (GitLab) Docker container

I would like to configure sshd on my host machine to forward public key logins of a certain user to a Docker container that runs its own sshd service. To give some context, I have GitLab running in a Docker container and I dislike opening another…
kwizzn
  • 410
  • 4
  • 10
9
votes
3 answers

Disabling password authentication for SSH doesn't work as expected Ubuntu 14.04 LTS

I want to make sure that the only way to access a computer through SSH is if the client's key is already added to the authorized_keys file on the server. For this, I edit /etc/ssh/sshd_config and enable the following…
CCG
  • 346
  • 4
  • 16
9
votes
4 answers

Why would I use "service sshd reload" in preference to "service sshd restart"?

From my tests on Linux, it seems like service sshd reload Only works when sshd is already running Stops sshd if the sshd_config file has problems Returns error code 0 even if the sshd_config file has problems service sshd restart Works regardless…
Tim Bellis
  • 1,607
  • 3
  • 14
  • 24
8
votes
2 answers

"Session" vs "Channel" (JSch and sshd)

I'm looking to move small files (at unknown times and in unknown quantities) from one server to another using JSch - unfortunately, I tried to open up a session for each transfer which quickly bombed out (as MaxSessions was I guess 10?). Then I…
SubSevn
  • 1,008
  • 2
  • 10
  • 27
8
votes
1 answer

How to securely have many to many users on virtual hosts

I currently setup a single user on my virtual host like this: sudo useradd -d /website/ -m user -s /usr/bin/rssh sudo chown root:root /website/ -R #Don't get why I need this part but doesn't work without! sudo chmod 755 /website/ sudo chown -R…
maxisme
  • 3,974
  • 9
  • 47
  • 97
7
votes
3 answers

Trouble setting up OpenSSH server on Windows 7 (can't start SSHD)

I just downloaded Cygwin for Windows 7. I want to install an OpenSSH SSH daemon, and after running "ssh-host-config", I tried starting the service by running $net start sshd System error 1069 has occurred. The service did not start due to a logon…
Dave
  • 8,667
  • 25
  • 72
  • 90
7
votes
3 answers

git push using PuTTY on Windows fails (fatal: The remote end hung up unexpectedly)

Excited about being ready to do my first git push ever, I created an alias for PuTTY in my cygwin environment: alias ssh="/cygdrive/c/PROGRA~2/putty/PUTTY.EXE" Then invoked (inside my working directory, of course), just as explained in page 47 in…
WinWin
  • 7,493
  • 10
  • 44
  • 53
1
2
3
26 27