shell一键安装rinetd端口转发工具
使用阿里云服务器搭建了2台服务器,但都没有外网ip,所以需要使用rinetd来转发ssh端口来进行访问.
系统:centos 7(64位)
软件:rinetd
cat /root/soft_shell/auto_install_rinetd.sh
1 | #!/bin/bash |
2 | # Author rocdk890 |
3 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin |
4 | export PATH |
5 |
6 | # Check if user is root |
7 | if [ $( id -u) != "0" ]; then |
8 | echo "Error: You ... |