- ssh example: 1) gordpssh -u root -p 9527 -s 1.1.1.1 -w 123456 -c "uname -a" 2) gordpssh --user root --port 9527 --host 1.1.1.1 --password 123456 --cmd "uname -a" - if use user & pasword; the password is for user. - rdp example is the same as ssh example.
Options: -c, --cmd string execute cmd in server (default "uname -a") -h, --help this help -s, --host string remote host addr ip (default " ") -w, --password string if use user & password to login; the password is for user. (default " ") -p, --port int remote host port (default 22) -u, --user string remote host user (default "root")
ssh management
1 2 3 4 5 6 7
D:\Go\testgofiles\oldboygo\hackingwithgolang\gordpssh>gordpssh.exe -s <ip addr> -p <port> -u <username> -w <password> ... 1 - {your choice [1]} [+] ssh command result is: Linux yisu-5de4c53d34764 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [+] host and ssh port is: 110.42.1.217 22