Access a remote host using PuTTY

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/leon_zeng0/article/details/87965546

PuTTY access with a remote host, the host is my aws Amazon 1-year free trial host, bitnami-wordpress-5.0.2-1-linux-ubuntu-16.04-x86_64-hvm-ebs-mp-, is a loaded it wordpress of ubuntu 16.04 Linux host. PuTTY is the most popular free ssh client terminals, which operate with a remote host, just like their own local machines operate the same.

The main reference article:  https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html

1: Preparation

,, download and install PuTTY  https://www.chiark.greenend.org.uk/~sgtatham/putty/

I was under the windows version, there are also versions of other systems.

Getting your host DNS domain name or ipv4 address, user name 

I was Ubuntu AMI, the user name is  ubuntu.

2: Use PuTTYgen preparation Private Key

At first I thought PuTTYgen PuTTY is a functional component, but can not find in PuTTY. It turned out to be a stand-alone program, but at the time to download and install PuTTY together installed.

From the Start menu open PuTTYgen

The interface in the Type of Key to the Generate , select RSA

In the File -> Load private key guide Ru Yama key file to Johnson, the default is the .ppk required, but is a sub .pem file, so choose All Files, as shown below: (*. *)

Click Save private key  to save PuTTY can identify the key, file name you specified.

3: Set

Open the PuTTY Session, start PuTTY, the Category panel, select Session, Host the Name in completing user_name@public_dns_name,

public_dns_name 也可以是直接ip 地址,我写的是 ubuntu @52.14.175.17

In the  Connection of the type , choose  SSH

Ensure that the Port  is 22.

 Options: the Category  election  Connection , in  Seconds between keepalives  input 180, every 180 seconds to tell the system, I was, and will not cut off

For later use, save the settings in the Session.

Enter key documents: the Category  panel, open the  Connection , expand  SSH , select  Auth .

Browse our point above the open file generated .ppk

4: to establish a connection

Click Open can be, if you are you a connection to the host, there will be safety warning, select yes, the connection is established.

Now, you can operate the remote host.

Remote file editing interface as follows:

 

 

Guess you like

Origin blog.csdn.net/leon_zeng0/article/details/87965546