Yahir commited on
Commit
7ce6f1d
1 Parent(s): c9137db

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +3 -0
start.sh CHANGED
@@ -1,4 +1,7 @@
1
  #!/bin/bash
2
  ssh-keygen -A
 
 
 
3
  /usr/sbin/sshd -D &
4
  wetty -p 7860 --allow-remote-hosts
 
1
  #!/bin/bash
2
  ssh-keygen -A
3
+ sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
4
+ sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
5
+ mkdir /root/.ssh
6
  /usr/sbin/sshd -D &
7
  wetty -p 7860 --allow-remote-hosts