近日为了提高自己的逼格,所以打算就在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最长&&默认租用时间 -> 虚拟网络编辑器