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
3
votes
0 answers

Perl - SSH daemon package

Do we have any Server module like HTTP::Daemon for SSH? I tried searching CPAN but no luck.
rpg
  • 1,632
  • 2
  • 18
  • 34
3
votes
3 answers

Cannot ssh my ubuntu server. "kex_exchange_identification: banner line contains invalid characters"

When I wanna use VScode remote SSH to my server, the following error is prompted: ... ... kex_exchange_identification: banner line contains invalid characters ... ... In the beginning, I thought it's an error of my VSCode, but I tried the simplest…
LuYi
  • 31
  • 1
  • 1
  • 2
3
votes
0 answers

Stuck when executing sshd with absolute path

To let you know, I am very newbie. So I managed to make a machine (windows 10) a ssh server. Everything worked smoothly. But after the PC being restarted when I try to run again the command "sshd" in the prompt I get: sshd re-exec requires execution…
RBN Bat
  • 53
  • 4
3
votes
1 answer

Apache MINA SSHD session echoes characters twice when using ProcessShellFactory, control characters don't work

I'm running OpenJDK 14 on macOS 10.15.7. I'm doing some proof-of-concept code establishing an SSH server with Apache Mina SSHD and then connecting to it. Here's what I have: import java.io.IOException; import java.nio.file.Paths; import…
Nick Williams
  • 2,864
  • 5
  • 29
  • 43
3
votes
1 answer

Git diff explanation for sshd

I have a diff: diff --git openbsd-compat/arc4random.c openbsd-compat/arc4random.c --- openbsd-compat/arc4random.c +++ openbsd-compat/arc4random.c @@ -242,7 +242,7 @@ void arc4random_buf(void *buf, size_t n) { _ARC4_LOCK(); - …
Hessnov
  • 367
  • 2
  • 7
3
votes
1 answer

xterm.js + ws + ssh2 not transmitting terminal resize signals (SIGWINCH) to ssh server

Rephrasing my issue here. I have a web-app using 'xterm.js', 'ws', and 'ssh2' node modules. Everything works great. Except one thing: SIGWINCH window resize signal won't make it to the sshd server, or the ssh2 stream. Other sigs, esc, ansi work…
jdmayfield
  • 1,400
  • 1
  • 14
  • 26
3
votes
4 answers

Is /etc/ssh/sshd_config supporting inline comments and multiple key / value within the same line?

I've to write an small script to modify /etc/ssh/sshd_config if this file is not matching with my checklist. For examples I've to check below entries are matched, if not I need to replace with below entires: Banner /etc/motd GatewayPorts no …
Sriram P
  • 179
  • 1
  • 13
3
votes
1 answer

SFTP connection Failed due to java.security.InvalidAlgorithmParameterException

I am trying to connect to password less configured server using SFTP. Sftp connection is successful using terminal. But when I am connecting in JAVA (using Jsch library) through username and password, I am unable to connect. My java code:- try { …
3
votes
1 answer

docker container can't use `service sshd restart`

I am trying to build a hadoop Dockerfile. In the build process, I added: && apt install -y openssh-client \ && apt install -y openssh-server \ && ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa \ && cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys…
cinqS
  • 1,175
  • 4
  • 12
  • 32
3
votes
1 answer

How to get IPv4 address when using SOCKS over ssh

I'm using SOCKS5 over ssh. All works fine, however, when I check my public IP address, I see this is an IPv6 address (The machine I'm connecting to has both IPv4 and IPv6 addresses). If I understand this correctly this is the responsibility of…
Tomas Kulich
  • 14,388
  • 4
  • 30
  • 35
3
votes
1 answer

How to open a shell without SSHD on the receiving end?

I have a machine without SSHD and I want to open a bash shell on this machine from a remote machine (that I can fully control). Since I have SSH on my limited machine, I configured a reverse proxy: $ ssh -R 19999:localhost:22…
Lars Schneider
  • 5,530
  • 4
  • 33
  • 58
3
votes
2 answers

Why doesn't s3fs work like a normal file system with Apache MINA SSHD?

So I'm trying to create a Java SFTP server which acts as a front end for Apache S3 buckets. You connect via SFTP and manage S3 files in buckets like they were files on the SFTP server. I've used Apache MINA (v1.2.0) as the SFTP server, which works…
Ross Drew
  • 8,163
  • 2
  • 41
  • 53
3
votes
2 answers

no auth login ssh for local development

I'm trying to set up a local development environment without any password whatsoever. I use docker with a default container with the sshd service installed. My idea is to spread the docker box to our team and remove all password promts form the…
ceed
  • 689
  • 1
  • 6
  • 15
3
votes
2 answers

SSH in Docker container causes HTTP 404

I have such simple dockerfile for PHP: # Base image FROM php:7-fpm # Update packages list RUN apt-get --yes update; # Install SSH server, set root password and allow root login RUN apt-get --yes install openssh-server RUN mkdir /var/run/sshd RUN…
Marcin Nabiałek
  • 109,655
  • 42
  • 258
  • 291
3
votes
1 answer

ssh_dispatch_run_fatal no matching key exchange method found (on Zend Studio Remote Connection)

I use MacBook OSX as local machine and NoteBook lUbuntu as server on my local network. SSH and SFTP connections works perfectly with osx terminal, but I have problems with Zend Studio 11 Remote Connection (Unfortunately, i'm not able to use latest…
Andrew
  • 671
  • 2
  • 8
  • 21