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:14] – 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. |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
===== Connecting to server ===== | ===== Connecting to server ===== | ||
Line 10: | 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 |
- | < | + | 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 | + | < |
+ | If you are using the session of another | ||
+ | \\ | ||
+ | Windows users can use [[http:// | ||
</ | </ | ||
- | After opening the connection you can work on the server as you where logged to the consolle.\\ | + | |
===== 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 25: | 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 43: | 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. | ||
- | ===== HowTo connect to Graphical Server | + | ===== HowTo connect to a Graphic Interface |
Sometime you have the need to access a server, but this server don't accept terminal connections, | Sometime you have the need to access a server, but this server don't accept terminal connections, | ||
If the version of Windows running on the server is quite old, you can install the program Real VNC (or some other package that derive from this). This program install in the machine and can be used to access the graphical interface of the Operating System, as if in front of the monitor. Remember that the graphical view you have is the same view that has the user that **is** in front of the monitor of the server. | If the version of Windows running on the server is quite old, you can install the program Real VNC (or some other package that derive from this). This program install in the machine and can be used to access the graphical interface of the Operating System, as if in front of the monitor. Remember that the graphical view you have is the same view that has the user that **is** in front of the monitor of the server. | ||
- | If this server is directly connected to Internet (not A thing to do!) you can connect to using the **vncviewer** client program directly: | + | If this server is directly connected to Internet (not real smart thing to do!) you can connect to using the **vncviewer** client program directly: |
| | ||
vncviewer <address of remote window server> | vncviewer <address of remote window server> | ||
- | else if the server is behind a Firewall you can connect to the **gateway** and then use a tunnel for the connection to the server: | + | else, if the server is behind a Firewall you can connect to the **gateway** and then use a tunnel for the connection to the server: |
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 |
< | < | ||
- | Sometime can be useful to access the complete graphical interface of Linux from a remote system. In this case the linux server has to be running | + | Sometime can be useful to access the complete graphical interface of Linux from a remote system. In this case we need to launch the **vncserver** |
</ | </ | ||
- | A second method to connect to Windows graphical interface is the use of **Remote Desktop** | + | A second method to connect to Windows graphical interface is the use of **Remote Desktop** |
rdesktop <address of remote server> -u < | rdesktop <address of remote server> -u < | ||
Line 88: | Line 99: | ||
- | ===== ===== | + | ====== ====== |
Other useful informations can be found on the manual pages of the commands and on Internet. | Other useful informations can be found on the manual pages of the commands and on Internet. | ||
ssh-remote.1175789676.txt.gz · Last modified: 2007/04/05 18:14 by damir