ssh-remote
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ssh-remote [2007/04/05 18:20] – damir | ssh-remote [2007/08/01 18:00] (current) – damir | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== HowTo connect to servers using SSH ====== | ====== HowTo connect to servers using SSH ====== | ||
- | To connect to server, local or remote, you can use the **ssh** client program. When you start a connection to the server using this program, the two machine involved, encrypt all the network traffic generated, so nobody can spy on your connection and see what you are doing. | + | To connect to server, local or remote, you can use the **ssh** client program. When you start a connection to the server using this program, the two machine involved, encrypt all the network traffic generated, so nobody can spy on your connection and see what you are doing. |
+ | |||
+ | |||
+ | |||
+ | |||
Line 11: | Line 16: | ||
where <name of the server> can be the letteral name of the server or his IP Address. If this is the first time you try to connect to the server, the system present the remote key and ask you to confirm the connection. Just answer **yes** to the question and the remote system will ask for your username and password.\\ | where <name of the server> can be the letteral name of the server or his IP Address. If this is the first time you try to connect to the server, the system present the remote key and ask you to confirm the connection. Just answer **yes** to the question and the remote system will ask for your username and password.\\ | ||
- | The username parameter is normally | + | The username parameter is normally |
- | <note warning> | + | |
- | If you are using the session of another user, to access the remote server, use the **-l < | + | |
- | </ | + | |
After opening the connection you can work on the server as you where logged on the consolle.\\ | After opening the connection you can work on the server as you where logged on the consolle.\\ | ||
+ | < | ||
+ | If you are using the session of another user, to access the remote server, use the **-l < | ||
+ | \\ | ||
+ | Windows users can use [[http:// | ||
+ | </ | ||
+ | |||
===== I want graphics ===== | ===== I want graphics ===== | ||
- | With the base connection, as the one explained above, you can't access to the graphical interface of the remote system. In order to start programs that have a graphical interface you must use a specific parameter that instruct the system to forward even the graphics connections. | + | With the base connection, you can't access to the X graphical interface of the remote system. In order to start programs that have a graphical interface you must use a specific parameter that instruct the system to forward even the graphics connections. |
ssh -l < | ssh -l < | ||
Line 27: | Line 34: | ||
<note tip> | <note tip> | ||
- | If you use this trick to see the graphical interface of a machine connected on the other side of the planet, check the bandwidth you can use. X11 connection require a lot of bandwidth. | + | If you use this trick to see the graphical interface of a machine connected on the other side of the planet, check the bandwidth you can use. X connection require a lot of bandwidth. |
</ | </ | ||
+ | |||
===== How Access more than one Server ===== | ===== How Access more than one Server ===== | ||
- | In a perfect world, Firewalls | + | In a perfect world, Firewalls |
- | The simple solution is to connect to the gateway and then, from the gateway, open a ssh connection to the remote server. This can be annoying and difficult if you have to connect to differents | + | The simple solution is to connect to the gateway and then, from the gateway, open a ssh connection to the remote server. This can be annoying and difficult if you have to connect to different |
- | A second option is to connect to the gateway, and at the same time open different **tunnels** that permit to connect to the remote server directly.\\ | + | A second option is to connect to the gateway and, at the same time, open different **tunnels** that permit to connect to the remote server directly.\\ |
- | ssh -l < | + | ssh -l < |
- | After the correct login in the **gateway**, | + | After the correct login in the **gateway**, |
ssh -l < | ssh -l < | ||
Line 45: | Line 53: | ||
This solution can be useful for connectin even to remote graphical interfaces, as the Remote Desktop used by Windows XP computers: | This solution can be useful for connectin even to remote graphical interfaces, as the Remote Desktop used by Windows XP computers: | ||
- | ssh -l < | + | ssh -l < |
Or to create a **tunnel** inside another **tunnel** | Or to create a **tunnel** inside another **tunnel** | ||
- | ssh -l < | + | ssh -l < |
- | ssh -l < | + | ssh -l < |
The two command above must be executed from 2 different terminal windows. | The two command above must be executed from 2 different terminal windows. | ||
Line 70: | Line 78: | ||
vncviewer -via username@gateway> | vncviewer -via username@gateway> | ||
- | The connections used in the first example are in clear from. This means that all the traffic | + | The connections used in the first example are in clear from. This means that all the traffic |
< | < |
ssh-remote.1175790001.txt.gz · Last modified: 2007/04/05 18:20 by damir