openssh server not working, cannot ssh from remote pc
this is what i did,
0. my linux pc, local ip 192.168.1.2, external ip 200.1.2.3 1. installed openssh server 2. in the /etc/ssh/sshd_config, i changed port to 2222 3. restart pc 4. in my router, i added a port forwarding for TCP for 192.168.1.2 for dest port 2222 now i go to another pc at home, i can ssh into 192.168.1.2 now if i remote into a remote pc, from there ssh into 200.1.2.3, won't work. What did i miss here ? Many thanks ! |
I believe this is a port misconfiguration.
SSH server runs on pc, listens on 2222. So if you ssh from a pc in LAN, you ssh to 192.168.1.2:2222 If you want to connect to internal ssh-server from internet on port 2222, then you should have a pf-rule 2222 -> 192.168.1.2:2222. Then you can connect to 200.1.2.3:2222 |
or just use the -p flag.
Code:
ssh -p 2222 remote_user@200.1.2.3 also read the links in my cig to learn about ssh keys and config files to make your life easier. |
yes, it's the port forwarding issue, i struggled a little bit with route setting and it's working now.
Quote:
---------- Post added 12-01-13 at 01:54 PM ---------- cool, thanks ! Quote:
|
All times are GMT -5. The time now is 02:27 PM. |