What is the difference between ssh and sshd




















Active 2 years, 10 months ago. Viewed 2k times. Any ideas? Is the session set up in sshd for both for both outgoing and incoming connections or does the ssh program deal with this for outgoing connections?

Does the sshd always handle the connections or does it delegate it to ssh? In that case how? Improve this question. Kamil Maciorowski KamilMaciorowski Yup, obviously :. Anyway that did not really give me the information needed. One of the things that confuses me is that the TCP connection feels as if it should be set up in the sshd, so how does the ssh program access that one?

Add a comment. Active Oldest Votes. Your question is unclear. Improve this answer. Ok so let me guess a little here then. So what you mean is that for outgoing SSH sessions the ssh program comminicates with the server on the local machine, which then forwards the information to the remote server? Would this also mean that the SSH client does not hold its own TCP connection, but rather sends a request to the sshd and leave the sshd to do all network communication?

An SSH client does not need to talk through a server. It is quite practical to run only an SSH client on 1 pc and only a server on another. And common to - putty is an ssh client eith no correspodinding server. The SSH client always initiates the setup of the secure connection, and the SSH server listens for incoming connection requests usually on TCP port 22 on the host system and responds to them. In the connection setup phase, the SSH server authenticates itself to the client by providing its public key.

This allows the SSH client to verify that it is actually communicating with the correct SSH server instead of an attacker that could be posing as the server. After a successful authentication the server provides the client access to the host system. This access is governed with the user account permissions at the target host system.

The secure connection between the client and the server is used for remote system administration, remote command execution, file transfers, and securing the traffic of other applications. Automated SSH sessions are very often used as a part of many automated processes that perform tasks such as logfile collection, archiving, networked backups, and other critical system level tasks.

Viewed 4k times. What is sshd? Does the command su use ssh or sshd? Improve this question. Srikanth Srikanth 1 1 gold badge 7 7 silver badges 17 17 bronze badges. I work on Solaris and though i have been using the commands ssh, sftp and su for quite sometime now, i have never completely understood how they work.

Please explain and point me towards some good resources where i can learn more. Add a comment. Active Oldest Votes. Improve this answer. Damn, beat me to it again. Nicely comprehensive answer - upvoted. Community Bot 1. Mr Shunz Mr Shunz 3, 2 2 gold badges 26 26 silver badges 28 28 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.



0コメント

  • 1000 / 1000