Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Mon Jun 29 15:35:08 2015 from 187.237.25.15
- __| __|_ )
- _| ( / Amazon Linux AMI
- ___|\___|___|
- https://aws.amazon.com/amazon-linux-ami/2015.03-release-notes/
- No packages needed for security; 4 packages available
- Run "sudo yum update" to apply all updates.
- [fulanitOpanga@opsys ~]$ sudo su -
- [sudo] password for fulanitOpanga:
- Sorry, try again.
- [sudo] password for fulanitOpanga:
- Last login: Mon Jun 29 15:35:18 UTC 2015 on pts/0
- [root@opsys ~]# ssh -v -i .ssh/opanga_sharedu.pem opanga@52.26.158.77
- OpenSSH_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015
- debug1: Reading configuration data /etc/ssh/ssh_config
- debug1: /etc/ssh/ssh_config line 50: Applying options for *
- debug1: Connecting to 52.26.158.77 [52.26.158.77] port 22.
- debug1: Connection established.
- debug1: permanently_set_uid: 0/0
- debug1: identity file .ssh/opanga_sharedu.pem type -1
- debug1: identity file .ssh/opanga_sharedu.pem-cert type -1
- debug1: Enabling compatibility mode for protocol 2.0
- debug1: Local version string SSH-2.0-OpenSSH_6.2
- debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
- debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
- debug1: SSH2_MSG_KEXINIT sent
- debug1: SSH2_MSG_KEXINIT received
- debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
- debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
- debug1: sending SSH2_MSG_KEX_ECDH_INIT
- debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
- debug1: Server host key: ECDSA 42:4d:73:ab:c7:c0:57:bf:1f:d1:46:ad:15:77:0e:f6
- debug1: Host '52.26.158.77' is known and matches the ECDSA host key.
- debug1: Found key in /root/.ssh/known_hosts:1
- debug1: ssh_ecdsa_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
- debug1: Next authentication method: publickey
- debug1: Trying private key: .ssh/opanga_sharedu.pem
- debug1: read PEM private key done: type RSA
- debug1: Authentications that can continue: publickey
- debug1: No more authentication methods to try.
- Permission denied (publickey).
- [root@opsys ~]# ssh -v -i opanga@52.26.158.77
- OpenSSH_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015
- Warning: Identity file opanga@52.26.158.77 not accessible: No such file or directory.
- usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
- [-D [bind_address:]port] [-e escape_char] [-F configfile]
- [-I pkcs11] [-i identity_file]
- [-L [bind_address:]port:host:hostport]
- [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
- [-R [bind_address:]port:host:hostport] [-S ctl_path]
- [-W host:port] [-w local_tun[:remote_tun]]
- [user@]hostname [command]
- [root@opsys ~]# ssh -v opanga@52.26.158.77
- OpenSSH_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015
- debug1: Reading configuration data /etc/ssh/ssh_config
- debug1: /etc/ssh/ssh_config line 50: Applying options for *
- debug1: Connecting to 52.26.158.77 [52.26.158.77] port 22.
- debug1: Connection established.
- debug1: permanently_set_uid: 0/0
- debug1: identity file /root/.ssh/id_rsa type -1
- debug1: identity file /root/.ssh/id_rsa-cert type -1
- debug1: identity file /root/.ssh/id_dsa type -1
- debug1: identity file /root/.ssh/id_dsa-cert type -1
- debug1: identity file /root/.ssh/id_ecdsa type -1
- debug1: identity file /root/.ssh/id_ecdsa-cert type -1
- debug1: Enabling compatibility mode for protocol 2.0
- debug1: Local version string SSH-2.0-OpenSSH_6.2
- debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
- debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
- debug1: SSH2_MSG_KEXINIT sent
- debug1: SSH2_MSG_KEXINIT received
- debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
- debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
- debug1: sending SSH2_MSG_KEX_ECDH_INIT
- debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
- debug1: Server host key: ECDSA 42:4d:73:ab:c7:c0:57:bf:1f:d1:46:ad:15:77:0e:f6
- debug1: Host '52.26.158.77' is known and matches the ECDSA host key.
- debug1: Found key in /root/.ssh/known_hosts:1
- debug1: ssh_ecdsa_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
- debug1: Next authentication method: publickey
- debug1: Trying private key: /root/.ssh/id_rsa
- debug1: Trying private key: /root/.ssh/id_dsa
- debug1: Trying private key: /root/.ssh/id_ecdsa
- debug1: No more authentication methods to try.
- Permission denied (publickey).
- [root@opsys ~]# ssh -v opanga@ncss.opanga.com
- OpenSSH_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015
- debug1: Reading configuration data /etc/ssh/ssh_config
- debug1: /etc/ssh/ssh_config line 50: Applying options for *
- debug1: Connecting to ncss.opanga.com [52.26.158.77] port 22.
- debug1: Connection established.
- debug1: permanently_set_uid: 0/0
- debug1: identity file /root/.ssh/id_rsa type -1
- debug1: identity file /root/.ssh/id_rsa-cert type -1
- debug1: identity file /root/.ssh/id_dsa type -1
- debug1: identity file /root/.ssh/id_dsa-cert type -1
- debug1: identity file /root/.ssh/id_ecdsa type -1
- debug1: identity file /root/.ssh/id_ecdsa-cert type -1
- debug1: Enabling compatibility mode for protocol 2.0
- debug1: Local version string SSH-2.0-OpenSSH_6.2
- debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
- debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
- debug1: SSH2_MSG_KEXINIT sent
- debug1: SSH2_MSG_KEXINIT received
- debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
- debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
- debug1: sending SSH2_MSG_KEX_ECDH_INIT
- debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
- debug1: Server host key: ECDSA 42:4d:73:ab:c7:c0:57:bf:1f:d1:46:ad:15:77:0e:f6
- The authenticity of host 'ncss.opanga.com (52.26.158.77)' can't be established.
- ECDSA key fingerprint is 42:4d:73:ab:c7:c0:57:bf:1f:d1:46:ad:15:77:0e:f6.
- Are you sure you want to continue connecting (yes/no)? yes
- Warning: Permanently added 'ncss.opanga.com' (ECDSA) to the list of known hosts.
- debug1: ssh_ecdsa_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
- debug1: Next authentication method: publickey
- debug1: Trying private key: /root/.ssh/id_rsa
- debug1: Trying private key: /root/.ssh/id_dsa
- debug1: Trying private key: /root/.ssh/id_ecdsa
- debug1: No more authentication methods to try.
- Permission denied (publickey).
- [root@opsys ~]# ssh -v -i .ssh/opanga_sharedu.pem opanga@ncss.opanga.com
- OpenSSH_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015
- debug1: Reading configuration data /etc/ssh/ssh_config
- debug1: /etc/ssh/ssh_config line 50: Applying options for *
- debug1: Connecting to ncss.opanga.com [52.26.158.77] port 22.
- debug1: Connection established.
- debug1: permanently_set_uid: 0/0
- debug1: identity file .ssh/opanga_sharedu.pem type -1
- debug1: identity file .ssh/opanga_sharedu.pem-cert type -1
- debug1: Enabling compatibility mode for protocol 2.0
- debug1: Local version string SSH-2.0-OpenSSH_6.2
- debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
- debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
- debug1: SSH2_MSG_KEXINIT sent
- debug1: SSH2_MSG_KEXINIT received
- debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
- debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
- debug1: sending SSH2_MSG_KEX_ECDH_INIT
- debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
- debug1: Server host key: ECDSA 42:4d:73:ab:c7:c0:57:bf:1f:d1:46:ad:15:77:0e:f6
- debug1: Host 'ncss.opanga.com' is known and matches the ECDSA host key.
- debug1: Found key in /root/.ssh/known_hosts:3
- debug1: ssh_ecdsa_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
- debug1: Next authentication method: publickey
- debug1: Trying private key: .ssh/opanga_sharedu.pem
- debug1: read PEM private key done: type RSA
- debug1: Authentications that can continue: publickey
- debug1: No more authentication methods to try.
- Permission denied (publickey).
- [root@opsys ~]# /etc/init.d/sshd status
- openssh-daemon (pid 1650) is running...
- [root@opsys ~]# less /etc/ssh/ssh
- ssh_config ssh_host_dsa_key.pub ssh_host_key.pub
- sshd_config ssh_host_ecdsa_key ssh_host_rsa_key
- sshd_config.rpmnew ssh_host_ecdsa_key.pub ssh_host_rsa_key.pub
- ssh_host_dsa_key ssh_host_key
- [root@opsys ~]# less /etc/ssh/sshd_config
- # $OpenBSD: sshd_config,v 1.89 2013/02/06 00:20:42 dtucker Exp $
- # This is the sshd server system-wide configuration file. See
- # sshd_config(5) for more information.
- # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
- # The strategy used for options in the default sshd_config shipped with
- # OpenSSH is to specify options with their default value where
- # possible, but leave them commented. Uncommented options override the
- # default value.
- # If you want to change the port on a SELinux system, you have to tell
- # SELinux about this change.
- # semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
- #
- #Port 22
- #AddressFamily any
- #ListenAddress 0.0.0.0
- #ListenAddress ::
- # The default requires explicit activation of protocol 1
- #Protocol 2
- # HostKey for protocol version 1
- #HostKey /etc/ssh/ssh_host_key
- # HostKeys for protocol version 2
- #HostKey /etc/ssh/ssh_host_rsa_key
- #HostKey /etc/ssh/ssh_host_dsa_key
- #HostKey /etc/ssh/ssh_host_ecdsa_key
- # Lifetime and size of ephemeral version 1 server key
- #KeyRegenerationInterval 1h
- #ServerKeyBits 1024
- # Logging
- # obsoletes QuietMode and FascistLogging
- #SyslogFacility AUTH
- SyslogFacility AUTHPRIV
- #LogLevel INFO
- # Authentication:
- #LoginGraceTime 2m
- #PermitRootLogin yes
- # Only allow root to run commands over ssh, no shell
- PermitRootLogin forced-commands-only
- #StrictModes yes
- #MaxAuthTries 6
- #MaxSessions 10
- #RSAAuthentication yes
- #PubkeyAuthentication yes
- # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2# but this is overridden so installations will only check .ssh/authorized_keys
- AuthorizedKeysFile .ssh/authorized_keys
- #AuthorizedPrincipalsFile none
- #AuthorizedKeysCommand none
- #AuthorizedKeysCommandUser nobody
- # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
- #RhostsRSAAuthentication no
- # similar for protocol version 2
- #HostbasedAuthentication no
- # Change to yes if you don't trust ~/.ssh/known_hosts for
- # RhostsRSAAuthentication and HostbasedAuthentication
- #IgnoreUserKnownHosts no
- # Don't read the user's ~/.rhosts and ~/.shosts files
- #IgnoreRhosts yes
- # To disable tunneled clear text passwords, change to no here!
- #PasswordAuthentication yes
- #PermitEmptyPasswords no
- # EC2 uses keys for remote access
- PasswordAuthentication yes
- # Change to no to disable s/key passwords
- #ChallengeResponseAuthentication yes
- ChallengeResponseAuthentication no
- # Kerberos options
- #KerberosAuthentication no
- #KerberosOrLocalPasswd yes
- #KerberosTicketCleanup yes
- #KerberosGetAFSToken no
- #KerberosUseKuserok yes
- # GSSAPI options
- #GSSAPIAuthentication no
- #GSSAPICleanupCredentials yes
- #GSSAPIStrictAcceptorCheck yes
- #GSSAPIKeyExchange no
- # Set this to 'yes' to enable PAM authentication, account processing,
- # and session processing. If this is enabled, PAM authentication will
- # be allowed through the ChallengeResponseAuthentication and
- # PasswordAuthentication. Depending on your PAM configuration,
- # PAM authentication via ChallengeResponseAuthentication may bypass
- # the setting of "PermitRootLogin without-password".
- # If you just want the PAM account and session checks to run without
- # PAM authentication, then enable this but set PasswordAuthentication
- # and ChallengeResponseAuthentication to 'no'.
- # WARNING: 'UsePAM no' is not supported in Fedora and may cause several
- # problems.
- #UsePAM no
- # Leaving enabled as described so that account and session checks are run
- UsePAM yes
- #AllowAgentForwarding yes
- #AllowTcpForwarding yes
- #GatewayPorts no
- #X11Forwarding no
- X11Forwarding yes
- #X11DisplayOffset 10
- #X11UseLocalhost yes
- #PrintMotd yes
- # Explicitly enable
- PrintLastLog yes
- #TCPKeepAlive yes
- #UseLogin no
- UsePrivilegeSeparation sandbox # Default for new installations.
- # $OpenBSD: sshd_config,v 1.89 2013/02/06 00:20:42 dtucker Exp $
- # This is the sshd server system-wide configuration file. See
- # sshd_config(5) for more information.
- # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
- # The strategy used for options in the default sshd_config shipped with
- # OpenSSH is to specify options with their default value where
- # possible, but leave them commented. Uncommented options override the
- # default value.
- # If you want to change the port on a SELinux system, you have to tell
- # SELinux about this change.
- # semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
- #
- #Port 22 #AddressFamily any
- #ListenAddress 0.0.0.0
- #ListenAddress ::
- # The default requires explicit activation of protocol 1
- #Protocol 2
- # HostKey for protocol version 1
- #HostKey /etc/ssh/ssh_host_key
- # HostKeys for protocol version 2
- #HostKey /etc/ssh/ssh_host_rsa_key
- #HostKey /etc/ssh/ssh_host_dsa_key
- #HostKey /etc/ssh/ssh_host_ecdsa_key
- # Lifetime and size of ephemeral version 1 server key
- #KeyRegenerationInterval 1h
- #ServerKeyBits 1024
- # Logging
- # obsoletes QuietMode and FascistLogging
- #SyslogFacility AUTH
- SyslogFacility AUTHPRIV
- #LogLevel INFO
- # Authentication:
- #LoginGraceTime 2m
- #PermitRootLogin yes
- # Only allow root to run commands over ssh, no shell
- PermitRootLogin forced-commands-only
- #StrictModes yes
- #MaxAuthTries 6
- #MaxSessions 10
- #RSAAuthentication yes
- #PubkeyAuthentication yes
- # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2# but this is overridden so installations will only check .ssh/authorized_keys
- AuthorizedKeysFile .ssh/authorized_keys
- #AuthorizedPrincipalsFile none
- :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement