当前位置:网站首页>1-12Vmware新增SSH功能
1-12Vmware新增SSH功能
2022-06-26 15:59:00 【山兔1】

配置kali linux下的ssh
默认情况下kali下的ssh配置文件,不允许root用户远程登录ssh。我们就需要配置对应的配置文件,/etc/ssh/sshd_config

修改两个划横线的之后,我们就可以使用远程root登录,并使用密码,进行验证
gedit /etc/ssh/sshd_config
使用putty连接ssh
我们想要用客户端连接服务端,前提 开启ssh服务,service ssh start

service ssh start
service ssh status
在这里出现active表示运行
我们可以使用
netstat -pantu | grep 22
筛选出22端口

我们使用ifconfig获取kali的ip地址

用putty进行连接

有很多ssh连接的软件,比如xshell
vm中自带ssh连接
调用安装好的openssh连接对应的虚拟机ssh服务端,而并不是自己开发了这款软件

自带的比较方便,不需要安装第三方软件,直接点击虚拟机

kali linux常用网络命令
1、netstat -pantu 查看当前tcp udp监听端口

2、service ssh start 开启服务

3、ifconfig 查看当前IP地址

有两张网卡,一张是eth0,另一张是lo
4、/etc/init.d/networking restart 重新启动网卡

5、ssh [email protected]地址 使用root用户登录ssh服务

使用机器上自带的ssh客户端,连接ssh服务
6、service ssh statu 查看连接状态

ssh建立连接之后,两者建立连接,如果客户端和服务端建立连接之后,使得双向传递过程,如果服务端立即关闭ssh连接,后端程序可能仍然在运行,执行短暂的命令,当服务器完全结束掉ssh进程之后,连接就会断掉,无法建立连接
边栏推荐
- mha 切换(操作流程建议)
- Leetcode one week race 298, first three questions
- SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)
- 【力扣刷题】单调栈:84. 柱状图中最大的矩形
- 7 自定义损失函数
- El dialog drag and drop, the boundary problem is completely corrected, and the bug of the online version is fixed
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- Golang temporary object pool optimization
- R language uses cor function to calculate the correlation matrix for correlation analysis, uses corrgram package to visualize the correlation matrix, reorders rows and columns using principal componen
- [thinking] what were you buying when you bought NFT?
猜你喜欢

Svg capital letter a animation JS effect

(一)keras手写数字体识别并识别自己写的数字

李飞飞团队将ViT用在机器人身上,规划推理最高提速512倍,还cue了何恺明的MAE...

Net基于girdview控件实现删除与编辑行数据

Angel 3.2.0 new version released! Figure the computing power is strengthened again

Supplement the short board - Open Source im project openim about initialization / login / friend interface document introduction

(1) Keras handwritten numeral recognition and recognition of self written numbers

STEPN 新手入门及进阶

Have you ever had a Kindle with a keyboard?

Comprehensive analysis of discord security issues
随机推荐
stm32h7b0替代h750程序导致单片机挂掉无法烧录程序问题
Comprehensive analysis of discord security issues
4 自定义模型训练
Stepn novice introduction and advanced
【力扣刷题】单调栈:84. 柱状图中最大的矩形
El dialog drag and drop, the boundary problem is completely corrected, and the bug of the online version is fixed
Transaction input data of Ethereum
What is the difference between stm32f1 and gd32f1?
Redis的ACID
[untitled]
今年高考英语AI得分134,复旦武大校友这项研究有点意思
SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)
Keepalived 实现 Redis AutoFailover (RedisHA)1
Redis顺序排序命令
Analyse panoramique de la chaîne industrielle en amont, en aval et en aval de la NFT « Dry goods»
精致妆容成露营“软实力”,唯品会户外美妆护肤产品销量激增
全面解析Discord安全问题
How to configure and use the new single line lidar
Solana capacity expansion mechanism analysis (1): an extreme attempt to sacrifice availability for efficiency | catchervc research
9 use of tensorboard