File size: 234 Bytes
c653950
bbdabde
7ce6f1d
 
 
c653950
 
1
2
3
4
5
6
7
8
#!/bin/bash
ssh-keygen -A
sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
mkdir /root/.ssh
/usr/sbin/sshd -D &
wetty -p 7860 --allow-remote-hosts