Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GimmeSlack12

macrumors 603
Original poster
Apr 29, 2005
5,406
14
San Francisco
I am trying to remotely access a computer through my LAN. Using SCP I am not able to get through using the terminal.

WAN IP: 24.205.245.xxx
LAN IP: 192.168.1.113

I am using the command:
scp file.pdf <user>@<WAN IP>:<destination>
and naturally this is not working. The only way I can get a transfer going is to try and transfer to the <user> root at the WAN IP and this ends up downloading the file to my router, which of course doesn't work (the router stalls and I have to manually reboot the thing).

Can anyone help me here, this bugging the crap out of me.
Oh and I have port 22 forwarded.

Overall the issue here is how do I direct the incoming file through the WAN IP to the LAN IP??? (get the file to go to the correct computer on the LAN).
 
You need to forward port 22 on your router to your Mac to use SSH/SFTP/SCP.

You also need to have enabled remote login (System Prefs==>Sharing==>Remote Login)

have you tried ssh access?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.