Installing a SSH server on Ubuntu

Last update on April 17, 2009 02:33 PM by deri58
Published by deri58

Installing a SSH server on Ubuntu







An ssh server allows you to remotely access your machine.
You'll have access to the remote console (equivalent to telnet, but secure) and the transfer of files (equivalent to ftp, but also security).

Installation


We can not be much easier: sudo aptitude install ssh

That's it!
You can now connect remotely in a secure way.

Use the login/password of users reported in Ubuntu.

Connection


You can use ssh command line: ssh mylogin@ipaddress

You can also access it from Windows:

with Putty for the command line: http://en.kioskea.net/telecharger/telecharger 918 putty
with WinSCP to transfer files: http://en.kioskea.net/telecharger/telecharger 3382 winscp

SSH through a proxy

First install the package connect-proxy:

sudo aptitude install connect-proxy


Edit /etc/ssh/ssh_config to enable SSH via proxy:

sudo echo 'ProxyCommand /usr/bin/connect-proxy -4 -S monproxy.domaine.com:port %h %p' >> /etc/ssh/ssh_config

Be sure to replace "proxy.domaine.com" and "port" with the name of your proxy and port number.
Tip

To run the ssh server on another port which the port 22 standard:

1. Open the configuration file: sudo gedit/etc/ssh/sshd_config
2. Locate the line Port 22 and replace by the value of your choice (eg port 741)
3. Restart the ssh server: sudo/etc/init.d/ssh restart

This little trick ensures that the server is identified by a scan of IP address ranges, and thus reduce some risks.
Best answers for « Installing a SSH server on Ubuntu » in :
Installing FreeNX under Ubuntu 9.04 Show Installing FreeNX under Ubuntu 9.04 Intro Adding FreeNX components Installing FreeNX Note Intro FreeNX allows you to access to a machine remotely via ssh. The display is more powerful compared to X11 over ssh and it can be describe as...
Install FreeNX server Show Install FreeNX server Instruction for installation Clients NX NX is a system that enables you to access your desktop from another computer over the internet. There exist different types of NX server: NX Server and 2X for...
Installing Java under Ubuntu Show Installing Java under Ubuntu Issue Solution Issue By default, Firefox does not come with Java. Solution Open a terminal (Application Menu/ Accessories/ Terminal) and type in: sudo aptitude install sun-java6-jre sun-java6...
Installing Opera on Ubuntu ShowInstalling Opera on Ubuntu Under Ubuntu 7.10 – Gutsy Gibbon Installing Opera on previous ubuntu versions You prefer using Opera as your Web browser on Ubuntu. Opera is fast and supports a lot of features. Please follow these steps...
[Ubuntu]Installing an HTTP proxy server (Squid) ShowInstalling an HTTP proxy server (Squid) 1.Installing the proxy 2.Configuring the proxy 2.1.Naming the proxy 2.2 Choosing the Port 2.3.Choosing the interface 2.4. Setting access rights and priorities 2.5. Authorizing access to group 2.6....
File transfer via SSH ShowSSH - Secure SHell SSH allows the use of pipelines controls, and use inputs / outputs pipes as any other commands , on the basis that redirection is done to or from the remote machine. This may be used to transfer files: ssh server...
Download SSH Secure Shell ShowSSH secure shell for workstations is a flexible client SSH allowing to connect in a secured way to remote applications. http://www.commentcamarche.net/faq/images/NHc6wz5jOYBhPXTis.png
Intranet - Installing a mail server ShowIntroduction to installation The most commonly used e-mail server in Linux is Sendmail; however, as it is very hard to configure, we will use Qmail, an alternative e-mail server, instead. Qmail is made up of a group of programs that work with...
Intranet - Installing the Linux distribution Mandrake ShowIntroduction to installation The server can work with any Linux distribution, but we have chosen to use the distribution Mandrake, which has the advantage of being simple to install, and includes a multitude of pre-installed applications. You can...