ssh help port 22 unable to connect

Discussion in 'Mac Basics and Help' started by howard, Oct 18, 2008.

  1. howard macrumors 68020

    howard

    Joined:
    Nov 18, 2002
    #1
  2. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #2
    Is ssh turned on in your nas rig? How are you connecting to your nas rig? with the terminal or another ssh client?

    at the terminal you need to type something

    ssh user@ip address eg ssh testuser@192.168.1.1 ( make sure you put the boxes ip here)
     
  3. howard thread starter macrumors 68020

    howard

    Joined:
    Nov 18, 2002
    #3
    i'm trying to connect with the terminal and when I try to connect with the ip address it says it refuses the connection, when i use the host name it times out.

    I'm not technically sure that ssh is turned on on the nas rig as there is no info in the management section or the manual for the nas rig that I can find. I'm gonna keep looking though to see if I can find anything...
     
  4. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #4
    Does that nas rig have a console? if so you could do a ps -ax | grep sshd

    if that returns something like this

    If you see that then your SSH daemon is running. How ever it might be on another port to find this you type cd /etc/ssh then type cat sshd_config ( and press enter)

    Look for where it says

    If it is on a different port you have to type extra command from the terminal in order to connect


    EG

    hope this helps!
     
  5. howard thread starter macrumors 68020

    howard

    Joined:
    Nov 18, 2002
    #5
    running the command:
    ps -ax | grep sshd

    comes up with:
    1030 ttys000 0:00.00 grep sshd

    running cat sshd_config shows:
    # override default of no subsystems
    Subsystem sftp /usr/libexec/sftp-server

    # Example of overriding settings on a per-user basis
    #Match User anoncvs
    # X11Forwarding no
    # AllowTcpForwarding no
    # ForceCommand cvs server


    I'm pretty new at the terminal...

    My NAS rig is the buffalo terastation
     
  6. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #6

    Did you type the ps -ax command on the nas rig? Typing that on your mac won't have any effect on ssh'ing into your nas.

    From what you have got there it sounds like SSH is not even running on the nas server

    This software is this a downloadable linux distro is it? - Is there any tabs in the web interface that says management, remote managment, or services? the SSH daemon might need to be turned on from there

    But that ps -ax output
    To me that looks like it is not running.
     
  7. howard thread starter macrumors 68020

    howard

    Joined:
    Nov 18, 2002
    #7
    I'm checked over the web interface and can find nothing about remote management or anything to do with ssh...nor in the manual for the NAS sadly. I really don't know where to go from here.
     
  8. GimmeSlack12 macrumors 603

    GimmeSlack12

    Joined:
    Apr 29, 2005
    Location:
    San Francisco
    #8
    When in doubt throw "sudo" in the beginning. You been able to SSH to your NAS before?
     
  9. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #9
    What kind of Distro is it? It is a linux distro yes?

    Do they have a website on how to turn on SSH?
     
  10. howard thread starter macrumors 68020

    howard

    Joined:
    Nov 18, 2002
    #10
    I'm not sure, I think terastations use a version of Linux.

    this is the first time I've tried to SSH to the terastation.

    I tried sudo and it got me to the password prompt using the ip but still refused connection. When I tried sudo using the host name it came back with "network is unreachable".

    so thats new

    [edit] i just found some instructions on enable ssh here http://buffalo.nas-central.org/inde...e#Create_a_startup_script_.26_config_for_sshd so i'll give that a shot and see what happens.
     
  11. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #11
    Great good luck, post back and let us know how you got on
     
  12. howard thread starter macrumors 68020

    howard

    Joined:
    Nov 18, 2002
    #12
    so i've found out that apparently the terastation does not have an ssh server and needs to be hacked to get ssh to work. I tried the script in the link above but when I try to quit out I get this error:

    "/etc/init.d/sshd.sh"
    "/etc/init.d/sshd.sh" E212: Can't open file for writing
    Press ENTER or type command to continue

    so i'm stuck on that now...
     
  13. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #13
    You need to probably run sudo to edit this file

    type sudo su and then it should prompt u for a password - enter the root password in
     

Share This Page