Kali Linux与Ubuntu的ssh服务

近日为了提高自己的逼格,所以打算就在windows10上远程连接到Kali与Ubunbu上来做PWN。

具体的设置如下:

Kali Linux下

1.gedit /etc/ssh/sshd_config

修改#PasswordAuthentication no -> PasswordAuthentication yes

修改#PermitRootLogin prohibit-password -> PermitRootLogin yes

2.Command-Line下 -> update-rc.d ssh enable  #设置ssh服务开机自动启动

3.为ssh添加别名

gedit /etc/ssh/ssh_config

->

  add context:

  Host jhd  #为IP:HostName设置的别名

  HostName xxx.xxx.xxx.xxx

  User xxxx  #以xxxx用户登录

  IdentitiesOnly yes

 

ubuntu下:

1.安装ssh

apt-get install openssh-server

2.gedit /etc/ssh/sshd_config

修改#PasswordAuthentication no -> PasswordAuthentication yes

修改#PermitRootLogin prohibit-password -> PermitRootLogin yes

3.Command-Line下 -> update-rc.d ssh enable  #设置ssh服务开机自动启动

VMware station 15

4.为ssh添加ip别名

Command-Line下

->  cd ~/.ssh/

->  touch config  #if config is not exist!

->  gedit config

->  add context:

  Host jhd  #为IP:HostName设置的别名

  HostName xxx.xxx.xxx.xxx

  User xxxx  #以xxxx用户登录

  IdentitiesOnly yes

 

VMware station 15

1.更改dhcp最长&&默认租用时间  ->  虚拟网络编辑器

 

转载于:https://www.cnblogs.com/Saoz/p/9966697.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值