Results 1 to 2 of 2
Hi there,
Im having problems when i want to access by ssh to my computer. I have opened port on my router, configured ssh_config, add a rule to iptables, but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-14-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 1
Problem with ssh
Hi there,
Im having problems when i want to access by ssh to my computer. I have opened port on my router, configured ssh_config, add a rule to iptables, but i cant access.I have a dyndns created and configured in my router. Im running backtrack 5 distro.
Here are more info.
=== NMAP ===
map -p25666 host
Host is up (0.00014s latency).
rDNS record for xxx.xxx.xxx.xxx:
PORT STATE SERVICE
25666/tcp filtered unknown
Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds
=== Ping ===
rootbt:~# ping host
PING host (xxx.xxx.xxx.xxx) 56(84) bytes of data.
64 bytes from axxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx): icmp_seq=1 ttl=64 time=0.088 ms
=== Iptables ===
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:25666
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:25666
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:25666
=== Error 1 ===
ssh roothost -p25666
ssh: connect to host port 25666: Connection timed out
=== SSH running ===
rootbt:~# /etc/init.d/ssh status
* sshd is running
=== Error 2 tried to acesso to localhost ===
rootbt:~# ssh localhost -p25666
Read from socket failed: Connection reset by peer
=== My sshd_config ===
Port 25666
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
UseDNS no
Can you help me?
Thanks in advance.
- 07-18-2011 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,673
So you can't even SSH in locally (on the same system)? Can you disable the firewall temporarily and try to SSH locally, to rule out iptables as the problem?


Reply With Quote
