Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
when i try to log into my computer from school i get this from term Last login: Tue Feb 8 14:19:11 on ttyp1 [I-Bruces-Computer:~] pupil% ssh -l user 80.xx.xx.xxx ssh: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Jul 2004
    Posts
    947

    ssh


    when i try to log into my computer from school i get this from term

    Last login: Tue Feb 8 14:19:11 on ttyp1
    [I-Bruces-Computer:~] pupil% ssh -l user 80.xx.xx.xxx
    ssh: connect to address 80.xx.xx.xxx port 22: Connection refused


    btw the cliant is a mac os x
    the host is fedora core 3

  2. #2
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    Are you sure sshd is running at home and that you've opened the port on the firewall?

    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  3. #3
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Try this when you are home an your local box
    Code:
    netstat -pant
    this will tell you what tcp ports are running
    should say something like
    0.0.0.0:22 tcp Listening
    sshd

    Then if it is and you have a router at home you should statically assign your linux box (the one you want to ssh to) then port forward port 22 in your rounter to the static IP of your linux box. BTW you Linux box can have a static IP of 192.168.blah.blah

    Let me know if I need to clarify this for you.
    Mike
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  4. $spacer_open
    $spacer_close
  5. #4
    Banned
    Join Date
    Jul 2004
    Posts
    947
    yes ssh is enabled on the firewall
    it didnt seem asif it were even communicating it was an instant reply

    what i get when i enter
    # netstat -pant

    tcp 0 0 :::22 :::* LISTEN 4152/sshd

  6. #5
    Banned
    Join Date
    Jul 2004
    Posts
    947
    Quote Originally Posted by adrenaline
    Try this when you are home an your local box
    Code:
    netstat -pant
    this will tell you what tcp ports are running
    should say something like
    0.0.0.0:22 tcp Listening
    sshd

    Then if it is and you have a router at home you should statically assign your linux box (the one you want to ssh to) then port forward port 22 in your rounter to the static IP of your linux box. BTW you Linux box can have a static IP of 192.168.blah.blah

    Let me know if I need to clarify this for you.
    Mike
    what will the LAN Port be?
    and the public port be?

    i did leave the hardware one off 2day but ill configure it anyway

  7. #6
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Lan and wan ports are 22 by default.

    If it is set up in your firewall and or router then it should be working. DId you change the configuration at all. It should work with no conf changes by default as long as you are logging in as a real user in the box.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  8. #7
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Andy,
    I just thought of something. Find out if you are not allowing the IP address of the computer you are trying to ssh in with. Maybe you firewall rules are such that it won't allow any unless you allow it. I mean maybe you need to specifically add the ip as allowed to use port 22.
    Check it out and let me know.
    Also in a term in root check our /var/log/secure
    Code:
    cd /var/log
    tail -f secure  #tail -100 secure will give you the last 100 lines in secure
    ctrl c gets you out of the log

    Mike
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  9. #8
    Banned
    Join Date
    Jul 2004
    Posts
    947
    Quote Originally Posted by adrenaline
    Andy,
    I just thought of something. Find out if you are not allowing the IP address of the computer you are trying to ssh in with. Maybe you firewall rules are such that it won't allow any unless you allow it. I mean maybe you need to specifically add the ip as allowed to use port 22.
    Check it out and let me know.
    Also in a term in root check our /var/log/secure
    Code:
    cd /var/log
    tail -f secure  #tail -100 secure will give you the last 100 lines in secure
    ctrl c gets you out of the log

    Mike
    it could be the school have alot of things locked
    prob this 2
    i have no permissions to open ports or anything
    they get their conection staright from the council and they dont really have any say on what should be locked or unlocked
    dont matter
    ill maybe keep it till uni or collage
    till then ill try work an ftp server

  10. #9
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    I would dobt that the school would stop outbound ssh. It is possible but doubtful. If you can get the your box but it errors out that tells me that you can ssh just fine. If you are getting denyed then look at the logs and find out what the ip is and allow that ip in the firewall and you should be good to go
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  11. #10
    Banned
    Join Date
    Jul 2004
    Posts
    947
    Quote Originally Posted by adrenaline
    I would dobt that the school would stop outbound ssh. It is possible but doubtful. If you can get the your box but it errors out that tells me that you can ssh just fine. If you are getting denyed then look at the logs and find out what the ip is and allow that ip in the firewall and you should be good to go
    they have blocked evrything such as .exe extesnisions etc etc

    where do i get the logs?

Page 1 of 2 1 2 LastLast

Posting Permissions

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