[nzlug] Server initiated SSH session

Andrew Bruce abruce at hope-st.ath.cx
Mon Feb 25 14:42:07 NZDT 2008


Sounds to me like you are looking for a reverse SSH tunnel.

On the mail server:
*ssh* -R 2222:localhost:22 home.address.or-ip

On your home machine:
*ssh* -p 2222 localhost


Andrew Bruce



Michael Hutchinson wrote:
> Hello everyone,
>
> I am looking for a way to get SSH access to work, but I have some
> restrictions to work around, which could make it difficult or
> impossible. The situation is this:
>
> I want to connect to our mail server at work, via SSH. It is publically
> addressable, but not for SSH - we have had hack attempts on SSH before
> so we blocked SSH in the firewall, except from the internal network.
> >From home I can access a windows server at work via RDP. From there I am
> able to SSH to our mail server. The problem here is that SSH over RDP is
> rather baggy and is a bit of a pain to work with as display refresh
> delays get in the way and cause typos etc. 
>
> I am hoping that I can initiate an SSH session from the mail server
> (given commands from the SSH over RDP connection) to my home computer,
> which would then act as if it had connected to the mail server and give
> me a terminal as such. Keeping in mind, I am on a dynamic IP at home.
>
> My first question is, is this possible? 
>
> Secondly, how would I approach a solution? 
>
> VPN is not really an option, if it were I'd have setup an IPsec linux
> box at home a while ago.
>
> Thanks in advance for any ideas,
>
> Cheers,
> Michael Hutchinson.
>
>
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
>   



More information about the NZLUG mailing list