MattF
(usa Slackware)
Enviado em 18/08/2015 - 10:50h
Consigo pingar o ip de meu pc perfeitamente, mas nada me faz conectar pelo ip externo. Aqui estão as configurações de meu modem:
[img]http://upimage.us/server/php/files/imagem5.png[/img]
Não está parecendo tudo certo?
Aqui está meu arquivo sshd_config
root@ubuntu-pos-ag31ap:/home/kubuntu# cat /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# 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
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
# 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
Se eu pegar o ip do router na hora e tentar conectar dá:
matheus@matt-Vostro-5470:~$ ssh kubuntu@****************
ssh: connect to host ************ port 22: Connection timed out
Já verifiquei com o serviço do ISP que o ssh não é bloqueado por eles. Consigo pingar o ip que está sendo usado, mas conecção somente pela rede interna, o que elimina a hipótese de ser algum firewall eu imagino.
O que mais pode ser?
edit: Tem mais isso:
nmap -A -T4 -Pn ********
Starting Nmap 6.47 ( http://nmap.org ) at 2015-08-18 11:28 BRT
Nmap scan report for **************.xd-dynamic.ctbcnetsuper.com.br (*************)
Host is up.
All 1000 scanned ports on *************************.xd-dynamic.ctbcnetsuper.com.br (**************) are filtered
Service detection performed. Please report any incorrect results at http://nmap.org /submit/ .
Nmap done: 1 IP address (1 host up) scanned in 101.55 seconds