Log in remotely with SSH (Linux)

Last update on October 18, 2009 10:56 AM by jak58
Published by jad05

Log in remotely with SSH (Linux)





Issue


Log in remotely with SSH under Linux.

Solution


The commands below are relevant only if you have an existing account on the PC you want to connect and that a SSH server is installed.

When using Linux the syntax is quite simple as the client part is already set in for most versions

Type the following command in any terminal (interface):

ssh login:password@the pc I want to get connected to


or

login@(the pc I want to get connected to )


If the client accepts the connection, you will immediately be prompted to enter the password.

To login in graphical mode(using X server)you must use theX option.

Using SSH through a proxy:


First have the proxy pack installed.

sudo aptitude install proxy-connect


modify the/etc/ssh/ssh_config file to allow the use of SSHthrough the proxy:

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

Note:

Make sure to replace myproxy.domain.com ant the port by the name of your proxy and the port number.

See also :
Best answers for « Log in remotely with SSH (Linux) » in :
Log in remotely with SSH (Windows) Show Log in remotely with SSH (Windows) Unlike Linux, the SSH client isn’t endemic to Windows OS. First of all you must have one installed. Solutions: Click on the following link: http://en.kioskea.net/telecharger/logiciel 36 telnet...
Installing a SSH server on Ubuntu Show Installing a SSH server on Ubuntu Installation Connection 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...
Vi/Vim - Avoid tabs when making a copy/paste Show[VI/VIM] Avoid tabs when making a copy/paste By default, when you make a copy and paste in vi or vim (through an remote SSH session), it adds incremented tabs at each line. To solve this problem,simply type: set paste in the window or add the...
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...
Configure your tv card on linux ShowConfigure your tv card on linux Step1: Card Installation Step 2: Tvtime Installation Step 3: Remote control configuration Lirc Installation First Test Configure Lirc Configure the behavior of buttons Example Autorun This faq...
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
Download Remote Shutdown Daemon ShowWhen to manage you several computer on the same network, it is not very easy to have to put out all posts, therefore move. Remote Shutdown Daemon and customer is a method allowing to put out one or computers across LAN or via Internet. To be...
Using FTP commands ShowThe FTP protocol FTP (File Transfer Protocol) is a protocol — meaning a standard language that lets two machines communicate — used so that computers of different types (or with different operating systems) can transfer files over a...
Linux - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...
Linux Tricks ShowMounting a CD-ROM drive To mount a CD-ROM drive under Linux, log in as the system administrator, i.e. with the login "root". It is then sufficient to mount the drive, i.e. to "capture" the content of the CD-ROM drive in a directory (most of the...