当前位置:网站首页>Xshell 6 or xftp 6 connects to CentOS 7 virtual machine

Xshell 6 or xftp 6 connects to CentOS 7 virtual machine

2020-11-10 16:08:13 Tayeon-IU

1. Click to open the virtual machine before checking the virtual machine network adapter Is it NAT, If not, change it to NAT

2. Click on “ Turn on this virtual machine ” Button to turn on the virtual machine , Click on "Not listed?" Button , Enter user name in sequence root and root Password of account , And then click “Sign In” Button login

3. Initial login root The account will appear, and the following configuration is required ( If it's not the first time you're logged into the account , This step can be skipped )

(1) Choose Chinese as the language , And then click “ Forward ” Button

(2) Enter the keyboard and select Chinese , And then click “ Forward ” Button

(3) Privacy options turn on location services , After all, sometimes we need to position , And then click “ Forward ” Button

(4) If you have and need an online account , Add according to your own needs , Otherwise, click “ skip ” Button

(5) Click on “ Start using CentOS Linus(S)” Button , It's all set up , It's time to start using virtual machines

4. Right click on the “Open Terminal”, Open the terminal

5. Input :

ip addr

When you see the information shown in the figure below , Prove that the network card has not been activated

6. Input :

vi /etc/sysconfig/network-scripts/ifcfg-ens33

Click on the keyboard “W”+“C” Enter editing status , hold “ONBOOT=no” Of no Change it to “yes”

Press "Esc" Button to exit , Press ":wq!" Save and exit

Be careful ":q!": Exit without saving

7. Enter the following command , Restart network service , Only when we modify it can it take effect

sudo service network restart

8. Let's type the following command again

ip addr

If the message shown below appears , It means that the modification was successful , among 192.168.192.128 It's virtual machine IP

9. open Xshell 6 or Xftp 6 Enter the following information to login successfully

name :Cent0S_7

host :192.168.192.128,

agreement :SSH(Xshell6)/SFTP(Xftp6)

port :22

user name :root

password :******

Be careful :Xshell 6 and Xftp 6 The choice of protocol is different ,Xshell 6 yes SSH,Xftp yes SFTP

Xshell: Enter the information above , The user name and password should be click on the left side “ User authentication ” You can enter , Then click OK to log in

Xftp: Enter the information above , Click OK to login

版权声明
本文为[Tayeon-IU]所创,转载请带上原文链接,感谢