Results 1 to 8 of 8

Thread: Unable to ssh to my server from behind draconian school firewall

  1. #1
    Join Date
    Feb 2008
    Beans
    189

    Unable to ssh to my server from behind draconian school firewall

    I'm trying to SSH to my home server from school. We have a pretty draconian filter/firewall here (whitelist based. seriously.), but I've assured that my IP is on the whitelist, and I can in fact visit my IP with a web browser and see the web server I've set up on the machine. But when I try SSH'ing in with PUTTY or similar, I get:
    Code:
    ubuntu@ubuntu:~$ ssh 70.239.162.206
    Connection closed by 70.239.162.206
    indicating that it's infact my server machine that doesn't want to accept connections from me from behind the firewal. How do I fix this?
    oh, and ssh -vvv give this:
    Code:
    ubuntu@ubuntu:~$ ssh -vvv 70.239.162.206
    OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 70.239.162.206 [70.239.162.206] port 22.
    debug1: Connection established.
    debug1: identity file /home/ubuntu/.ssh/id_rsa type -1
    debug1: identity file /home/ubuntu/.ssh/id_rsa-cert type -1
    debug1: identity file /home/ubuntu/.ssh/id_dsa type -1
    debug1: identity file /home/ubuntu/.ssh/id_dsa-cert type -1
    debug1: identity file /home/ubuntu/.ssh/id_ecdsa type -1
    debug1: identity file /home/ubuntu/.ssh/id_ecdsa-cert type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
    debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
    debug2: fd 3 setting O_NONBLOCK
    debug1: SSH2_MSG_KEXINIT sent
    Connection closed by 70.239.162.206
    Looking for a Terminal Emulator that's fun to use? Try out this program I wrote!

  2. #2
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    Re: Unable to ssh to my server from behind draconian school firewall

    is port 22 blocked by the firewall

    and you probably should hash out your IP

  3. #3
    Join Date
    Feb 2008
    Beans
    189

    Re: Unable to ssh to my server from behind draconian school firewall

    Quote Originally Posted by SlugSlug View Post
    is port 22 blocked by the firewall
    I'm able to SSH to other places, such as GitHub (they don't provide shell access, but git'ing is done over the SSH protocol, and you can log in via SSH to confirm the connection works. It does.

    and you probably should hash out your IP
    what do you mean by this? It's the school's internet hookup I'm using try and SSH, not a personal connection.
    Looking for a Terminal Emulator that's fun to use? Try out this program I wrote!

  4. #4
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    Re: Unable to ssh to my server from behind draconian school firewall

    the IP in the code boxes


    is ssh server installed on your home box?
    Last edited by SlugSlug; September 7th, 2012 at 04:16 PM.

  5. #5
    Join Date
    Feb 2008
    Beans
    189

    Re: Unable to ssh to my server from behind draconian school firewall

    Quote Originally Posted by SlugSlug View Post
    the IP in the code boxes


    is ssh server installed on your home box?
    yes, on the server (also in my house) that I'm trying to connect to and on my PC
    Looking for a Terminal Emulator that's fun to use? Try out this program I wrote!

  6. #6
    Join Date
    Aug 2008
    Location
    Washington DC
    Beans
    2,186
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Unable to ssh to my server from behind draconian school firewall

    you can set a root cron to start sshd in debug mode every 5 minutes if it is not running and have its stdout and stderr redirected to file - in debug it accept 1 connection then exit.

    connect a couple of times from from school - when you get home check your debug file.

  7. #7
    Join Date
    Feb 2008
    Beans
    189

    Re: Unable to ssh to my server from behind draconian school firewall

    here's an interesting insight:

    1) I tried to SSH in from school, got the "connection closed by 70.239.162.206" again.

    2) Came back home, SSH'ed in from my home computer. The welcome message on server login said:

    Code:
    Last login: Sun Sep  9 13:42:50 2012 from 70-239-162-206.lightspeed.snantx.sbcglobal.net
    Several things:

    1) 70.239.162.206 is my home internet IP and thus the IP of the server
    2) "lightspeed" is the name of the internet filtering/firewall service my school uses
    3) that "last login" time is indeed the time I tried to log in at.
    Looking for a Terminal Emulator that's fun to use? Try out this program I wrote!

  8. #8
    Join Date
    Sep 2012
    Location
    ab.ca
    Beans
    149
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to ssh to my server from behind draconian school firewall


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •