Koozali.org: home of the SME Server

SSH to my box behind Esmith

Lucas

SSH to my box behind Esmith
« on: September 28, 2001, 11:43:38 PM »
I have esmith set up as my firewall/gateway (esmith 4.1) and I was wondering how I could get it so when I am OUTSIDE my network (IE at work) I can ssh to my domain name and have my esmith box forward the ssh to a computer behind the esmith box.  
Basically I want to ssh to my personal cpu as opposed to my server from somewhere on the net.

Can anyone help.
Please use short easy sentances I'm still new at this

Lucas 'wulfie' Smithen

Dan Brown

Re: SSH to my box behind Esmith
« Reply #1 on: September 29, 2001, 12:06:40 AM »
Not exactly what you asked, but probably the easiest solution: ssh from work to e-smith, then from e-smith to your personal CPU.

rob

Re: SSH to my box behind Esmith
« Reply #2 on: September 30, 2001, 08:17:50 AM »
when you log into e-smith from off site, do you get a command prompt?

 if so enter  ssh target-ip-address
[example: ssh 192.168.5 ]

 or put the above into the end of .bash_profile . so edit .bash_profile.


 If you do either of the above and want more info on storing ssh keys to eliminate entering 2 passowrd, let me know.

Rangi Biddle

Re: SSH to my box behind Esmith
« Reply #3 on: September 30, 2001, 08:35:10 AM »
There is an option to in E-Smith to allow public SSH access make sure that you enable the option (even though it is strongly recommended not to) once you've enabled access to your E-Smith and you've logged in basically your network and it's resources are open for you to use.

After you have logged in (as stated in another post) ssh to your boxes IP and login there.  I am not sure if E-Smith has yet implemented a iptables solution as yet since the kernel version is 2.2 and iptables is being mainly utilized by the 2.4 kernel.   If it had the option you could add rules into iptable to forward your connection to the specified port and IP address.

Hope this helps anyway.