Update start.sh
Browse files
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
|