Kali link Xshell and update source

A, Xshell first link kali system ssh

Xshell: help us to connect the various services platform to facilitate the management server, the link can be encrypted (ssh / vsftp)

1. Open the ssh service kali, service ssh start, check the status of the detection is turned on success

  /etc/init.d/ssh status or netstat -ntulp | 22

2. Turn off the firewall (currently) /etc/init.d/iptables stop, and then need to find ssh configuration file vi / etc / ssh / sshd_config, modify sshd_config file, the command is:

vi /etc/ssh/sshd_config

The #PasswordAuthentication no Notes removed, and the NO YES // kali modify the default is yes

3. PermitRootLogin without-password to modify

PermitRootLogin yes

4. Restart services service ssh restart

  If the restart fails, enter / usr / sbin / sshd -T, execute the command to find the wrong place to be modified

  Set at startup commands are: update-rc.d ssh enable

       Detecting whether to open a successful service ssh status

5. Use Xshell link, use the root account or general account, open xshell -> File -> New -> Protocol Select ssh -> Enter the IP address of the host kali view with ifconfig, port 22 by default, click on the link , then enter the root account, and finally enter the password, you can link

NOTE: ssh service can change the port, edit the configuration file, port -> port 2222

 

Update source: Updates source is to be able to install the software

1. Open the sources.list file

command:leafpad /etc/apt/sources.list

 

2. Add the following update sources:

#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

#阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

#清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free

#浙大
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free

#东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib

#官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

3. After saving execution

apt-get update # update the list of packages to retrieve information

apt-get upgrade # upgrade once

apt-get clean # delete the downloaded installation package

reboot # reboot

Guess you like

Origin www.cnblogs.com/liujizhou/p/11525116.html
Recommended