Created
July 11, 2013 11:42
-
-
Save deanet/5974741 to your computer and use it in GitHub Desktop.
multiport-ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deanet@husaini ~ $ ssh root@116.251.208.13 -v | |
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011 | |
debug1: Reading configuration data /home/deanet/.ssh/config | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: Applying options for * | |
debug1: Connecting to 116.251.208.13 [116.251.208.13] port 22. | |
debug1: Connection established. | |
debug1: identity file /home/deanet/.ssh/id_rsa type 1 | |
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048 | |
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048 | |
debug1: identity file /home/deanet/.ssh/id_rsa-cert type -1 | |
debug1: identity file /home/deanet/.ssh/id_dsa type -1 | |
debug1: identity file /home/deanet/.ssh/id_dsa-cert type -1 | |
debug1: identity file /home/deanet/.ssh/id_ecdsa type -1 | |
debug1: identity file /home/deanet/.ssh/id_ecdsa-cert type -1 | |
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3 | |
debug1: match: OpenSSH_5.3 pat OpenSSH* | |
debug1: Enabling compatibility mode for protocol 2.0 | |
debug1: Local version string SSH-2.0-OpenSSH_5.8p1 Debian-7ubuntu1 | |
debug1: SSH2_MSG_KEXINIT sent | |
debug1: SSH2_MSG_KEXINIT received | |
debug1: kex: server->client aes128-ctr hmac-md5 none | |
debug1: kex: client->server aes128-ctr hmac-md5 none | |
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent | |
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP | |
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent | |
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY | |
debug1: Server host key: RSA a4:ea:d2:3a:8b:9b:6c:56:2c:ea:ca:69:e6:f0:cf:4e | |
The authenticity of host '116.251.208.13 (116.251.208.13)' can't be established. | |
RSA key fingerprint is a4:ea:d2:3a:8b:9b:6c:56:2c:ea:ca:69:e6:f0:cf:4e. | |
Are you sure you want to continue connecting (yes/no)? yes | |
Warning: Permanently added '116.251.208.13' (RSA) to the list of known hosts. | |
debug1: ssh_rsa_verify: signature correct | |
debug1: SSH2_MSG_NEWKEYS sent | |
debug1: expecting SSH2_MSG_NEWKEYS | |
debug1: SSH2_MSG_NEWKEYS received | |
debug1: Roaming not allowed by server | |
debug1: SSH2_MSG_SERVICE_REQUEST sent | |
debug1: SSH2_MSG_SERVICE_ACCEPT received | |
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password | |
debug1: Next authentication method: gssapi-keyex | |
debug1: No valid Key exchange context | |
debug1: Next authentication method: gssapi-with-mic | |
debug1: An invalid name was supplied | |
Cannot determine realm for numeric host address | |
debug1: An invalid name was supplied | |
Cannot determine realm for numeric host address | |
debug1: An invalid name was supplied | |
debug1: An invalid name was supplied | |
debug1: Next authentication method: publickey | |
debug1: Offering RSA public key: /home/deanet/.ssh/id_rsa | |
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password | |
debug1: Trying private key: /home/deanet/.ssh/id_dsa | |
debug1: Trying private key: /home/deanet/.ssh/id_ecdsa | |
debug1: Next authentication method: password | |
root@116.251.208.13's password: | |
debug1: Authentication succeeded (password). | |
Authenticated to 116.251.208.13 ([116.251.208.13]:22). | |
debug1: channel 0: new [client-session] | |
debug1: Requesting no-more-sessions@openssh.com | |
debug1: Entering interactive session. | |
debug1: Sending environment. | |
debug1: Sending env LANG = en_US.UTF-8 | |
Last login: Thu Jul 11 19:22:25 2013 from 168.63.203.77 | |
[root@server1 ~]# df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/simfs 20G 1.4G 19G 7% / | |
none 256M 4.0K 256M 1% /dev | |
[root@server1 ~]# vim /etc/ssh/sshd_config | |
[root@server1 ~]# /etc/init.d/ht | |
htcacheclean httpd | |
[root@server1 ~]# /etc/init.d/ht | |
htcacheclean httpd | |
[root@server1 ~]# /etc/init.d/httpd stop | |
Stopping httpd: [ OK ] | |
[root@server1 ~]# /etc/init.d/sa | |
sandbox saslauthd | |
[root@server1 ~]# /etc/init.d/sa | |
sandbox saslauthd | |
[root@server1 ~]# /etc/init.d/saslauthd stop | |
Stopping saslauthd: [ OK ] | |
[root@server1 ~]# /etc/init.d/sshd restart | |
Stopping sshd: [ OK ] | |
Starting sshd: [ OK ] | |
[root@server1 ~]# netstat -ntlp | grep sshd | |
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 13594/sshd | |
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 13594/sshd | |
tcp 0 0 :::443 :::* LISTEN 13594/sshd | |
tcp 0 0 :::22 :::* LISTEN 13594/sshd | |
[root@server1 ~]# vim /etc/ssh/sshd_config | |
[root@server1 ~]# /etc/init.d/^C | |
[root@server1 ~]# netstat -ntlp | |
Active Internet connections (only servers) | |
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name | |
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 23822/master | |
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 13594/sshd | |
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 13598/dovecot/imap- | |
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 24094/dovecot | |
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 24343/mysqld | |
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 23822/master | |
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 24094/dovecot | |
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13598/dovecot/imap- | |
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 23593/perl | |
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 13594/sshd | |
tcp 0 0 :::25 :::* LISTEN 23822/master | |
tcp 0 0 :::443 :::* LISTEN 13594/sshd | |
tcp 0 0 :::993 :::* LISTEN 13598/dovecot/imap- | |
tcp 0 0 :::995 :::* LISTEN 24094/dovecot | |
tcp 0 0 :::587 :::* LISTEN 23822/master | |
tcp 0 0 :::110 :::* LISTEN 24094/dovecot | |
tcp 0 0 :::143 :::* LISTEN 13598/dovecot/imap- | |
tcp 0 0 :::21 :::* LISTEN 24120/proftpd | |
tcp 0 0 :::22 :::* LISTEN 13594/sshd | |
[root@server1 ~]# /etc/init.d/ | |
clamd iptables netconsole postfix rpcbind smb udev-post | |
crond killall netfs postgresql rsyslog snmpd usermin | |
dovecot mailman network proftpd sandbox snmptrapd vzquota | |
halt modules_dep nmb quota_nld saslauthd spamassassin webmin | |
htcacheclean mysqld nscd rdisc sendmail sshd winbind | |
httpd named portreserve restorecond single svnserve xinetd | |
[root@server1 ~]# /etc/init.d/dovecot stop | |
Stopping Dovecot Imap: [ OK ] | |
[root@server1 ~]# /etc/init.d/po | |
portreserve postfix postgresql | |
[root@server1 ~]# /etc/init.d/po | |
portreserve postfix postgresql | |
[root@server1 ~]# /etc/init.d/sshd restart | |
Stopping sshd: [ OK ] | |
Starting sshd: [ OK ] | |
[root@server1 ~]# netstat -ntlp | |
Active Internet connections (only servers) | |
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name | |
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 23822/master | |
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 24343/mysqld | |
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 23822/master | |
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 23593/perl | |
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 :::25 :::* LISTEN 23822/master | |
tcp 0 0 :::443 :::* LISTEN 13636/sshd | |
tcp 0 0 :::587 :::* LISTEN 23822/master | |
tcp 0 0 :::110 :::* LISTEN 13636/sshd | |
tcp 0 0 :::143 :::* LISTEN 13636/sshd | |
tcp 0 0 :::21 :::* LISTEN 24120/proftpd | |
tcp 0 0 :::22 :::* LISTEN 13636/sshd | |
[root@server1 ~]# netstat -ntlp | grep sshd | |
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 13636/sshd | |
tcp 0 0 :::443 :::* LISTEN 13636/sshd | |
tcp 0 0 :::110 :::* LISTEN 13636/sshd | |
tcp 0 0 :::143 :::* LISTEN 13636/sshd | |
tcp 0 0 :::22 :::* LISTEN 13636/sshd | |
[root@server1 ~]# logout | |
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 | |
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 | |
debug1: channel 0: free: client-session, nchannels 1 | |
Connection to 116.251.208.13 closed. | |
Transferred: sent 11152, received 22296 bytes, in 220.8 seconds | |
Bytes per second: sent 50.5, received 101.0 | |
debug1: Exit status 0 | |
deanet@husaini ~ $ telnet 116.251.208.13 110 | |
Trying 116.251.208.13... | |
Connected to 116.251.208.13. | |
Escape character is '^]'. | |
SSH-2.0-OpenSSH_5.3 | |
ehlo | |
Protocol mismatch. | |
Connection closed by foreign host. | |
deanet@husaini ~ $ telnet 116.251.208.13 443 | |
Trying 116.251.208.13... | |
Connected to 116.251.208.13. | |
Escape character is '^]'. | |
SSH-2.0-OpenSSH_5.3 | |
ehlo | |
Protocol mismatch. | |
Connection closed by foreign host. | |
deanet@husaini ~ $ | |
deanet@husaini ~ $ telnet 116.251.208.13 143 | |
Trying 116.251.208.13... | |
Connected to 116.251.208.13. | |
Escape character is '^]'. | |
SSH-2.0-OpenSSH_5.3 | |
ehlo | |
Protocol mismatch. | |
Connection closed by foreign host. | |
deanet@husaini ~ $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment