- How to setup SSH – Install SSH server and client
- SSH as SOCKs 5 proxy
- Linux user account with ssh-only permissions
What is SSH?
Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices.
SSH was designed as a replacement for Telnet and other insecure remote shells, which send information, notably passwords, in plaintext, rendering them susceptible to packet analysis. The encryption used by SSH is intended to provide confidentiality and integrity of data over an unsecured network, such as the Internet.
Installation of SSH:
You may install the SSH server while installing your system or you may install it later manually.
To install both ssh server and client manually type:
1 |
sudo apt-get install openssh-server openssh-client |
To be sure that your SSH server is running try to connect to yourself:
ssh localhost
or try to connect from another machine in your network:
1 |
ssh (username)@(ip-of-the-server) |
where “username” is the name of the server’s user.
Optionally if you have your SSH server running on another port rather than the default (22) try:
1 |
ssh -p (port) (username)@(ip) |
To start your SSH server type:
1 |
sudo /etc/init.d/ssh start |
to stop your SSH server type:
1 |
sudo /etc/init.d.ssh stop |
and to restart your SSH server type:
1 |
sudo /etc/init.d/ssh restart |
5 thoughts on “How to setup SSH – Install SSH server and client”