当前位置:网站首页>关于KALI使用xshell连接
关于KALI使用xshell连接
2022-06-29 17:03:00 【全栈程序员站长】
导致xshell等其他连接工具无法连接
操作如下
2020版本的kali默认创建的时候没有root账户
sudo -i
密码:你自己创建账号的密码
切换到root账户 获取权限vim /etc/ssh/sshd_config编辑sshd配置文件
找到#PermitRootLogin prohibit-password,把前面的#去掉,并且将“prohibit-password”修改为YES
找到PasswordAuthentication这一行,将前面的#号注释去掉,如果后面写的是no,需要修改成yes
Esc 退出编辑 ,输入:wq 回车,完成编辑
/etc/init.d/ssh restart
重启成功,进行连接
查看IP
[email protected]:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:3b:f2:88 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.129/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
valid_lft 1139sec preferred_lft 1139sec
inet6 fe80::20c:29ff:fe3b:f288/64 scope link noprefixroute
valid_lft forever preferred_lft forevershell连接
[E:\Xshell\Sessions]$ ssh 192.168.1.129设置ssh开机自启
[email protected]:~# systemctl enable ssh.service
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/101932.html原文链接:https://javaforall.cn
边栏推荐
- Take another picture of cloud redis' improvement path
- 微博评论高性能高可用架构设计(架构实战营 模块五作业)
- Naacl 2022 | distillation of machinetranslation SOTA model
- Real test = "half product + Half development"?
- About xampp unable to start MySQL database
- 【Oracle】基础知识面试题
- Advanced MySQL - storage engine
- Greedy Apple plans to raise the price of iphone14, which will provide opportunities for Chinese mobile phones
- Subgraphs in slam
- When MySQL RDS is collected using Flink CDC, the datetime type field will be compared with the source table after collection
猜你喜欢

研究所的这些优势真香!上岸率还极高!

C winfrom chart chart control bar chart and line chart

What are the project management systems suitable for small and medium-sized enterprises?

STM32 key chattering elimination -- Thinking of entry state machine

NVIDIA安装最新显卡驱动

Perhaps in two years, ASML will be free to supply EUV lithography machines to China

Word2vec vector model of Wiki Chinese corpus based on deep learning

手把手教你在windows上安装mysql8.0最新版本数据库,保姆级教学

Mathematical knowledge: finding combinatorial number II - finding combinatorial number

Comment configurer logback? 30 minutes pour apprendre à coder et à frapper tard.
随机推荐
curl: (56) Recv failure: Connection reset by peer
STM32 key chattering elimination -- Thinking of entry state machine
PHP删除目录
An error is reported in the Flink SQL rownumber. Who has met him? How to solve it?
深度剖析monai(一) Data和Transforms部分
InheritableThreadLocal 在线程池中进行父子线程间消息传递出现消息丢失的解析
Interrupt怎么用
Summary of problems during xampp Apache installation
为什么信息化 ≠ 数字化?终于有人讲明白了
机器学习7-支持向量机
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
【Oracle】基础知识面试题
关于harbor私有仓库忘记登录密码
Practice | extreme optimization of script errors - make script errors clear at a glance
Fluent的msh格式网格学习
NAACL 2022 | 机器翻译SOTA模型的蒸馏
Solid state storage manufacturer Yilian joins dragon dragon community to build a new open source ecosystem
GNN notes: message propagation model
How to use openmesh to realize the conversion between 3D files of different formats
手把手教你在windows上安装mysql8.0最新版本数据库,保姆级教学