secure-sshd/client-setup.sh

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