当前位置:网站首页>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进程之后,连接就会断掉,无法建立连接
边栏推荐
- Net based on girdview control to delete and edit row data
- Selenium chrome disable JS disable pictures
- Svg canvas canvas drag
- 若依如何实现接口限流?
- JS教程之Electron.js设计强大的多平台桌面应用程序的好工具
- 振动式液量检测装置
- Golang 1.18 go work usage
- Tencent Peking University's sparse large model training acceleration program het was selected into the VLDB of the international summit
- 全面解析Discord安全问题
- Solana扩容机制分析(1):牺牲可用性换取高效率的极端尝试 | CatcherVC Research
猜你喜欢

Anaconda3 installation tensorflow version 2.0 CPU and GPU installation, win10 system

Beijing University and Tencent jointly build angel4.0, and the self-developed in-depth learning framework "River map" is integrated into the ecology

NFT 平台安全指南(2)

SVG大写字母A动画js特效

大话领域驱动设计——表示层及其他

Transaction input data of Ethereum

Solana扩容机制分析(2):牺牲可用性换取高效率的极端尝试 | CatcherVC Research

"C language" question set of ⑩

OpenSea上如何创建自己的NFT(Polygon)

【力扣刷题】单调栈:84. 柱状图中最大的矩形
随机推荐
Svg canvas canvas drag
理想路径问题
Tweenmax+svg switch color animation scene
NFT交易原理分析(2)
神经网络“炼丹炉”内部构造长啥样?牛津大学博士小姐姐用论文解读
Quickly get started with federal learning -- the practice of Tencent's self-developed federal learning platform powerfl
Tsinghua's "magic potion" is published in nature: reversing stem cell differentiation, and the achievements of the Nobel Prize go further. Netizen: life can be created without sperm and eggs
Redis 迁移(操作流程建议)1
Interview pit summary I
R language generalized linear model function GLM, GLM function to build logistic regression model, analyze whether the model is over discrete, and use the ratio of residual deviation and residual degr
11 cnn简介
油田勘探问题
Keepalived 实现 Redis AutoFailover (RedisHA)
JS教程之使用 ElectronJS、VueJS、SQLite 和 Sequelize ORM 从 A 到 Z 创建多对多 CRUD 应用程序
"C language" question set of ⑩
9 use of tensorboard
Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
固件供应链公司Binarly获得WestWave Capital和Acrobator Ventures的360万美元投资
11 introduction to CNN
How to configure and use the new single line lidar