SSH to external device fail

I am on MT 2.9.23, and I configured MT as basic router.

I have problem on connecting to my remote device via SSH thru PuTTY.

ANy help?

Thanks.

Please post your current firewall masquerade and nat rules. That will help us determine the cause of your problem.

Mezlo

firewall nat

chain=srcnat out-interface=wan action=masquerade

this is the only firewall nat rules in the router.

What type of remote device is this? Is it SSH1 or SSH2? Does it require any special ssh keys, rsa, dsa, etc… Maybe ssh is incompatible. If you telnet into port 22 you can usually see the type it is using, like MT shows:

SSH-1.99-OpenSSH_2.3.0_Mikrotik_v2.9

What do you get on the remote device when you telnet to port 22?

Are you getting any errors or just a message that it can’t connect? Does the remote device have any logging and does it tell you whats wrong?

I know, lots of questions, but you didn’t give us any information to help you.

Sam

The device that I trying to SSH to is a Linux server, and it was working fine before I replaced the firewall with MT.

When I try from another network (which is not routed with MT) and I can connect to that server with PuTTY.

Please advice.

Thanks.

I use the following masquerade rule and don’t have any problems:

add chain=srcnat src-address=192.168.69.0/24 action=masquerade

192.168.69.0/24 is my local network (obviously). Try it and see if it resolves your issues.

Mez

Post firewall filter rules as well

telnet to port 22 to see if your even getting the MT box … it might be something else you are connecting to.