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
1 answer

Apache Mina SSHD - FileZilla shows wrong directory structure

I set up an SSH Server as an SFTP Server with Apache Mina SSHD. I implemented my own FileSystemFactory, so that specific directories are created for the user that logs in. When I open a connection to the server with FileZilla, the directory…
nlsn
  • 53
  • 5
3
votes
1 answer

JSch SSH connection throws NPE when initializing reverse tunnel

When I'm adding a reverse tunnel to a com.jcraft.jsch.Session object, the connection initialization fails with the following stacktrace: com.jcraft.jsch.JSchException: java.lang.NullPointerException at…
Dennis Winter
  • 2,027
  • 4
  • 32
  • 45
3
votes
0 answers

Java Apache sshd tunnel

I want to create java application, that will be my custom sshd server. Clients should be able to create tunnels to this server. Now I have this working example: import org.apache.sshd.SshServer; import org.apache.sshd.common.ForwardingFilter; import…
bgnfu7re
  • 144
  • 6
3
votes
1 answer

Get the PID of a remote SSH Session [QNX]?

So I have been scratching my head trying to figure this one out, and I'm a little stuck. I'm using Python's subprocess module and Popen to open a PuTTY session, (using plink.exe), and connect to a remote host. This means I have access to the session…
3
votes
0 answers

linux: best way to wrap a in-the-clear protocol in ssh

I've got a legacy protocol, no support for authentication, no support for sessions, just plain and simple do whatever you want commands which are sent in the clear from client to server and the server happily executes whatever it receives much as…
dancl
  • 689
  • 5
  • 13
3
votes
1 answer

SSH Exec channel for Open SSH using JSCH, apache mina sshd or sshj

I've ran into some problems with SSH, using any o the following libraries JSCH, sshd from apache and sshj. They all block on the exec channel when trying to read the output from a command I run and it will eventually timeout. The thing is that this…
dalvarezmartinez1
  • 1,385
  • 1
  • 17
  • 26
3
votes
1 answer

Apache SSHD & JSCH

I want mocking ssh server for transfer file. For do it i wand use Apache Mina SSHD. For transfer in system use JSch. with private key. JSch client code. JSch jSch = new JSch(); jSch.addIdentity(privateKeyPath, passPhrase); Session…
Rinat Mukhamedgaliev
  • 5,401
  • 8
  • 41
  • 59
3
votes
1 answer

Embedding Apache SSHD server in Android application

I am trying to embed Apache SSHD Server in my Android application. Here is the code: SshServer sshd = SshServer.setUpDefaultServer(); sshd.setPort(8022); sshd.setKeyPairProvider(new…
Milan Fabian
  • 154
  • 4
  • 13
3
votes
3 answers

Cygwin user permissions for sftp (Operation not permitted)

So, I installed Cygwin 1.7.17 on Win7, I used mkpasswd to bring in a domain user (my main admin account). I used mkpasswd again to bring in a local account I created called "ffftp". mkpasswd -d -u administrator > /etc/passwd mkpasswd -l -u ffftp >>…
Dexter
  • 6,170
  • 18
  • 74
  • 101
3
votes
2 answers

Using SSH connection for inter application communication

I want to write an application that would be a custom SSH server with two types of connection: A sync channel, where clients type a command and the server would return the output An stream channel where the user connects and starts reading the IO,…
Alexandre
  • 316
  • 2
  • 7
3
votes
1 answer

only allow scp no shell

can I use /etc/ssh/sshd_config to make it so a user can only scp files to the server but open a shell. I tried with the commands below but just got connection closed. Match User website X11Forwarding no AllowTcpForwarding no …
2
votes
2 answers

tunneling using SSH

I'm tunneling all of my internet traffic through a remote computer hosting Debian using sshd. But my internet connection becomes so slow (something around 5 to 10 kbps!). Can be anything wrong with the default configuration to cause this…
Saba Jamalian
  • 750
  • 2
  • 10
  • 24
2
votes
2 answers

Centos 6 sshd "server refused our key"

I'm just setting up a fresh install of Centos 6 (my first time with 6) and have inserted the public key into the authorized_keys file - I'm using the same public/private key pair that I already use for several other servers (including several other…
Xoundboy
  • 827
  • 15
  • 26
2
votes
0 answers

How to run docker command remotely using ssh on mac?

I tried running remote commands with sshd open locally on Mac. For example $ ssh username@localhost ls Command like this work just fine. But $ ssh username@localhost docker is not executed and the following error is displayed. $ ssh…
battlecook
  • 471
  • 6
  • 17
2
votes
1 answer

SELinux AVC Denying "{ dyntransition }" for sshd

I've tried looking around for the solution with no luck. I have SELinux set to permissive right now on Centos 8, but if I set it to enforcing it completely disables my ability to ssh into the server. This is the journal entry: setroubleshoot[2015]:…