I would like to ssh into my local machine, from a remote ssh shell. by looking at ifconfig
$ ifconfig
wlan0 Link encap:Ethernet HWaddr 60:d8:19:24:bd:8b
inet addr:137.44.181.163 Bcast:137.44.183.255 Mask:255.255.252.0
inet6 addr: fe80::62d8:19ff:fe24:bd8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:2107490 errors:0 dropped:0 overruns:0 frame:0
TX packets:1813977 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2109347830 (2.1 GB) TX bytes:340765253 (340.7 MB)
I can do ssh 137.44.181.163
from my local machine just fine. However when I try this from the remote machine (yes I do actually want to do this rather than just exit the shell) I get:
ssh: connect to host 137.44.181.163 port 22: No route to host
port 22 is open.
/etc/sysconfig/iptables
did not exist on local machine so I created it and added:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
just to be sure. still nothing.
Perhaps my entire approach is wrong - but I wondered if anyone had any adivce on how I can ssh back into my local machine, from a remote host? I need to do this for file/folder transfer purposes. I do not want to come out of remote host and use scp
as I need to push the file from the remote host, rather than retrieve it while on local host.