Graphical interface for SSH client connection in Ubuntu

Source: Internet
Author: User
Tags ssh server
In Windows, if you use ssh to connect to the server, putty is a small and practical tool. If you want a graphical interface, you can use the X tool with putty. Or directly use xmanagerenterprise, which is very convenient. In Ubuntu, the ssh client is generally provided. If not, run sudoapt-getinstallopenssh-client to install the client. Then run ps-e | grepssh if there is ssh-agen.

In Windows, if you use ssh to connect to the server, putty is a small and practical tool. If you want a graphical interface, you can use the X tool with putty. Or you can directly use xmanager enterprise, which is not very convenient.

In Ubuntu, the ssh client is generally provided. If no sudo apt-get install openssh-client can be executed, run ps-e | grep ssh. If there is an ssh-agent, the ssh client is successfully installed. On the terminal, you can enter the ssh username@192.168.1.100 to log on to the ssh server 192.168.1.100, and then you will be asked to enter the password, and then you will log on.

About opening the ssh service http://www.linuxidc.com/Linux/2010-02/24349.htm for Ubuntu

After the ssh connection is successful, you need to make some configuration if you want to display the graphic interface. The procedure is as follows:

1. The server-side ssh server must run the forward X interface. On the ssh server, find the configuration file/etc/ssh/sshd_config. There is a line of X11Forwarding yes in www.linuxidc.com, make sure that this is yes (note that # In this configuration file is a comment, make sure that X11Forwarding is not followed by # comment), and then restart the ssh service, cd/etc/init. d. Run the command in this directory. /ssh restart

2. Configure the client. In the/etc/ssh/ssh_config configuration file, find ForwardAgent yes, ForwardX11 yes, forwardX11Trusted yes (note that # In this configuration file is a comment to ensure that the modified row is not commented out)

3. After the configuration is complete, enter the terminal. now assume that the ip address of our Ubuntu client is 1.1.1.1 (only assumed), and the ip address of the ssh server is 2.2.2.2. The following is the procedure. Do not make a mistake:

First, before the terminal is connected to ssh, execute xhost + 2.2.2.2 to allow cross-border connection from the ssh server.

Then execute ssh-X root@2.2.2.2 note-X This is capital X, this step is to connect to the ssh server, then you will need to enter the password

At this time, the terminal has been connected to the ssh server, and then execute export DISPLAY = 1.1.1.1: 0.0 to re-locate the x display of the ssh server to the 0.0 DISPLAY of 1.1.1.1, that is, our client.

Then perform a test, execute xclock, and wait... If a clock interface appears on your Ubuntu interface at this time, congratulations.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.