You are not logged in.
I have seen many thread on this and I cannot understand why it is not working for me.
I had SSH server working yesterday and today it stopped working.
/etc/hosts.allow
#
# /etc/hosts.allow
#
sshd: ALL
# End of file
~ /etc/hosts.deny
#
# /etc/hosts.deny
#
ALL: ALL: DENY
# End of file
~ /etc/ssh/sshd
# $OpenBSD: sshd_config,v 1.82 2010/09/06 17:10:19 naddy Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# 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 change a
# default value.
Port 2222
#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
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
# 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 do not 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
# Change to no to disable s/key passwords
ChallengeResponseAuthentication no
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# 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'.
UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none
# no default banner path
#Banner none
# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs serverI have confirmed that port is opened on canyouseeme.com.
I have forwarded the port.
ssh -v -p 2222 miles@xx.xxx.xxx.xx
OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to xx.xxx.xxx.xx [xx.xxx.xxx.xx] port 2222.
debug1: connect to address xx.xxx.xxx.xx port 2222: Connection timed out
ssh: connect to host xx.xxx.xxx.xx port 2222: Connection timed outAlso I do not have any iptables set up. I have never used them
Offline
I have confirmed that port is opened on canyouseeme.com....
Weird, that domain is parked from here.
Are you sure it is running ? (Sorry, I have to check
)
Anything interesting in the log?
Are you running systemd or initscripts?
Have you performed an update without rebooting?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
The output indicates that the connection couldn't be established. But if canyouseeme.org shows a connection can be made, then it sounds like the destination port could be blocked on the network or machine you're accessing the server from.
You could try connecting to that port with telnet to rule out an issue with the ssh client.
Offline
http://www.archlinux.org/news/dropping- … s-support/
hosts.allow and hosts.deny have no effect.
Offline
Thank you for the responses.
Sorry I ment to say I verified at http://www.canyouseeme.org/
My /var/log/auth.log doesn't really have anything interesting. except when verifying with site above
Aug 1 18:36:19 localhost sshd[30563]: Did not receive identification string from 8.23.224.110Not sure if i'm using telnet right
[miles]> telnet 192.168.0.11 2222
Trying 192.168.0.11...
Connected to 192.168.0.11.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.0
[miles]> telnet miles@192.168.0.11 2222
miles@192.168.0.11/2222: lookup failure: Name or service not known
[miles]> telnet miles@mydomain.no-ip.org 2222
miles@mydomain.no-ip.org/2222: lookup failure: Name or service not knownI don't believe i'm running systemd or any special initscripts (please advise me if you need to view anything).
Yes I have tried rebooting my system
Offline
I (slightly) abused my moderator powers.
ewaller@odin:~ 1010 %nmap <Address Redacted by ewaller> -Pn
Starting Nmap 6.01 ( http://nmap.org ) at 2012-08-01 20:22 PDT
Nmap scan report for <Redacted by ewaller>
Host is up (0.095s latency).
Not shown: 999 filtered ports
PORT STATE SERVICE
2222/tcp closed EtherNet/IP-1
Nmap done: 1 IP address (1 host up) scanned in 12.14 seconds
ewaller@odin:~ 1011 %I also tried to ssh to port 2222. Check your logs for anything interesting in the last 5 minutes.
Last edited by ewaller (2012-08-02 03:26:51)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline