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
7
votes
2 answers

where to change the default location of .Xauthority file when log in via ssh -X as a specific user

I need to change the .Xauthority file location for a group of users to be $HOME/tmp/.Xauthority rather than the default $HOME/.Xauthority. I already tried what I could catch up from several sources like: I set the environment variable like this in…
setra
  • 99
  • 1
  • 1
  • 4
7
votes
2 answers

Strange openssh-server log in /var/log/auth.log

I found a very strange entry in my log files Jan 29 01:35:30 vs-proj-handy sshd[5316]: Received disconnect from 130.207.203.56: 11: These aren't the droids we're looking for. [preauth] I guess the message "These aren't the droids we're looking…
tuxmania
  • 906
  • 2
  • 9
  • 28
7
votes
2 answers

Linux how to start "sftp-server"?

I'm not very familiar with it but there is installed openssh/sftp-server (by a vendor before) on RHEL and it was well running before i reboot the server. Then when i check after rebooted: # ps aux | grep ftp No sftp is running but sshd is. So how…
夏期劇場
  • 17,821
  • 44
  • 135
  • 217
6
votes
3 answers

Apache MINA SFTP Example

I'm trying to set up an SFTP server with multiple users that each have their own home directory. I read this answer which explained how to set a virtual directory for a single user but I'm not sure how to have multiple users each with their own home…
Hooli
  • 1,135
  • 3
  • 19
  • 46
6
votes
2 answers

git clone without asking for users password

I want to create public git repository on my dedicated server for anyone to clone but it keeps asking me for password for git user. I have created user named git without password. Used: passwd -d git Unfortunately every time I try to do: git…
sebastian_t
  • 2,241
  • 6
  • 23
  • 39
6
votes
1 answer

"no matching host key type found" - Apache MINA SFTP server

I’m hoping to set up a SFTP server in Java using Apache MINA. It seems to start OK, but when I try to connect to it with an OpenSSH client, I get: $ ssh localhost -p 2222 Unable to negotiate with ::1: no matching host key type found. Their offer:…
Rich
  • 15,048
  • 2
  • 66
  • 119
6
votes
0 answers

Apache Mina SSHD Server - How to get the list of forwarded ports

I have built a server/client system with Apache Mina SSHD. Clients connect the server by creating a session. Then they request port forwarding: session.startRemotePortForwarding(ssaRemote,ssaLocal); What I need is that: In server side, I should be…
Null Pointer
  • 344
  • 1
  • 2
  • 11
6
votes
1 answer

Apache MINA SFTP - limit the directory structure that the user sees

Am using Apache MINA SSHD to build my own custom SFTP Server. I want to limit the file system my user sees. I just want them to see the directory structure under /aa/bb/cc I do not want them to be able to see or navigate any other folder. And from…
Swaroop Rath
  • 141
  • 1
  • 4
5
votes
1 answer

Setup Docker Container with SSH server?

I want to setup a very minimalistic alpine linux docker container with the following capabilities: It runs an ssh server It copies over a SSH public key of my choice to which I can then authenticate I looked into various options, and in the end…
Kyu96
  • 1,159
  • 2
  • 17
  • 35
5
votes
1 answer

Unable to get public-key login to work on Windows 10 ssh server

I've installed the Windows 10 ssh package and set up sshd. Logging in with a password works great, but I'm unable to get public-key login to work. I have the same authorized_keys file in .\ssh\authorized_keys as I to on Linux boxes where public-key…
5
votes
1 answer

where is SIGHUP from? (sshd forks a child to create a new session, kill this child and all processes in the session dies)

sshd forks a child process to create a new session. here is the output(partial) of pstree: sshd(1230) -- sshd(1234) -- bash (...) |- sshd(1235) -- bash -- a.out -- a.out After running "kill -9 1235" , a.out dies (the…
fireworks2
  • 315
  • 2
  • 10
5
votes
1 answer

Apache SSHD client get server public key

I am trying to get the public key of a server. This is what I tried: val serverKey = sshClient.connect("dyn mem", "localhost", "2222") .verify() .getSession() .getKex() .getServerKey() The problem is get the result of getServerKey() is…
Jan Wytze
  • 3,307
  • 5
  • 31
  • 51
5
votes
1 answer

Why are hanging SSH commands waiting for output from a pipe with both ends open in 'sshd' on the server?

This is on StackOverflow as opposed to SuperUser/ServerFault since it has to do with the syscalls and OS interactions being performed by sshd, not the problem I'm having using SSH (though assistance with that is appreciated, too :p). Context: I…
Zac B
  • 3,796
  • 3
  • 35
  • 52
5
votes
1 answer

SSH: accept connection with password only from localhost

I want to be able to connect to root@localhost with a password and from the outside (root@my-ip) with a private key only. I didn't find what to write in /etc/ssh/sshd_config to allow this… If it requires both an SSH key and a password it's ok…
Thibaud Dauce
  • 367
  • 4
  • 14
5
votes
0 answers

CentOS 7 - sshd: Permission denied on authorized_keys if the users home folder is on another partition

I have an issue that drives me crazy... I try to fix it for at least 2 hours now - and I was not very successful. Issue itself: I installed CentoS7 (I don't know if it's a CentOs 7 specific behaviour) on a VM that is supposed to host our git and…
winem
  • 68
  • 1
  • 6
1 2
3
26 27