secure-sshd/client-setup.sh
raw link view readme1 | |
2 | echo "mypassword" | passwd alloweduser01 --stdin |
3 | |
4 | cat >> /root/connect.sh << EOF |
5 | ssh -p 2222 -l alloweduser01 10.18.0.5 |
6 | EOF |
7 | |
8 | chmod +x /root/connect.sh |
9 |
1 | |
2 | echo "mypassword" | passwd alloweduser01 --stdin |
3 | |
4 | cat >> /root/connect.sh << EOF |
5 | ssh -p 2222 -l alloweduser01 10.18.0.5 |
6 | EOF |
7 | |
8 | chmod +x /root/connect.sh |
9 |