Page 1 of 2 12 LastLast
Results 1 to 16 of 21

Thread: SSH on Freenas

  1. #1
    handscombmp
    Guest

    SSH on Freenas

    Struggling to set up freenas for SHH.
    I've got it running on Virtual box on my pc at the moment testing it.

    So far i've enabled it and i can connect to it on my local network using winscp.

    I then went to test it over the internet so i created a dyndns acount and added it to my router along with allowing the port for SSH through to the ip address of the freenas.

    But it just doesn't want to connect in anyway.

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    London
    Posts
    2,456
    Thanks
    100
    Thanked
    75 times in 51 posts
    • Mblaster's system
      • Motherboard:
      • ASUS PK5 Premium
      • CPU:
      • Intel i5 2500K
      • Memory:
      • 8gb DDR3
      • Storage:
      • Intel X25 SSD + WD 2TB HDD
      • Graphics card(s):
      • Nvidia GeForce GTX 570
      • PSU:
      • Corsair HX520
      • Case:
      • Antec P180
      • Operating System:
      • Windows 7 Professional x64
      • Monitor(s):
      • HP w2207 (22" wide)
      • Internet:
      • Rubbish ADSL

    Re: SSH on Freenas

    Well if it's working internally buit not externally it points to the port forwarding as where the failure is, you can test if you have the port open here. Also, maybe try it with your IP address rather than the dyndns, just to rule it out.
    I don't mean to sound cold, or cruel, or vicious, but I am so that's the way it comes out.

  3. #3
    Splash
    Guest

    Re: SSH on Freenas

    You're not trying to connect from a network that blocks outgoing SSH are you?

  4. #4
    handscombmp
    Guest

    Re: SSH on Freenas

    Quote Originally Posted by Splash View Post
    You're not trying to connect from a network that blocks outgoing SSH are you?
    Dont know. Don't think so.

    Something that did ocur to me was the fact i'm running it on a virtual machine and my AV may be stopping it.
    Do you reckon the chances are high on that.

  5. #5
    Splash
    Guest

    Re: SSH on Freenas

    AV on the host machine *shouldn't* interfere with the virtual machine, and as you can connect from the LAN I'd say it's unlikely. The issue is either your NAT firewall, or some firewall on the network that you're testing from.

  6. #6
    handscombmp
    Guest

    Re: SSH on Freenas

    Disable firewall on my router and it still comes up with 'Network Error:Connection Timed Out'

  7. #7
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: SSH on Freenas

    Are you forwarding port 22?
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  8. #8
    handscombmp
    Guest

    Re: SSH on Freenas

    yeah. doing that.
    Even changed it but to no avail.

  9. #9
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: SSH on Freenas

    As it is working internally, it must be a configuration/hardware problem on the connection machine or the path (SOTBO - statement of the blindingly obvious)

    I have used a separate dial up connection in the past to bowl out problems like this so I am connecting from a different network. Have you looked at the logs for the SSH server to see if any connection is being attempted? I could be that your router doesn't like routing out and back to itself (depends what it is). Have you done a tracert to the server machine to see how far the packets are getting?
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  10. #10
    handscombmp
    Guest

    Re: SSH on Freenas

    Got it working!
    On setting up freenas i didn't use the routers DHCP and it didn't work. On changing freenas to use the dhcp it worked fine.
    My problem is now that although i've set my router to keep DHCP lease forever if the power goes off it loses it's DHCP list so the IP address of freenas changes.

    Also on freenas what does it mean by DSA Private Key, PEM format.
    I've got putty gen which creates something but it isn't happy with it in freenas.
    Plus when connecting to it via SSH it says something about trusting key.
    Last edited by handscombmp; 16-05-2009 at 02:54 PM.

  11. #11
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: SSH on Freenas

    Get a decent router which stores static leases, or manually set the IP address, name server, and gateway for the NAS box.

    And DSA private key is for if you want to use your personal encryption key to authenticate with the box.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  12. #12
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: SSH on Freenas

    Quote Originally Posted by aidanjt View Post
    Get a decent router which stores static leases, or manually set the IP address, name server, and gateway for the NAS box.

    And DSA private key is for if you want to use your personal encryption key to authenticate with the box.
    And unless you have a very good reason for NOT doing so, you should set up a public/private key pair to authenticate with the box.

    http://sial.org/howto/openssh/publickey-auth/

    http://www.openssh.com/manual.html

    http://www.ece.uci.edu/~chou/ssh-key.html

    (If your NAS box is open to the public internet it will be probed and brute force password attacks will be made - the record in one night for my set up was around 55,000 attempts - generally it is between 200 and 3,000 in any 24hr period)
    Last edited by peterb; 17-05-2009 at 08:54 AM.
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  13. #13
    handscombmp
    Guest

    Re: SSH on Freenas

    That looks confusing.

    From what i gather from it though it stops people just trying to hack in by using random password and username guesses, as the client and my freenas have to have the same key.

  14. #14
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: SSH on Freenas

    Yeah, it looks confusing on the surface, but really it's quite simple when you boil it down.

    You have (either self-generated, or issued from a Certificate Authority) a public key, and private key pair, on any machine you want to connect to, you apply your public key to that machine. So when you connect to those machines, your client can use it's private key to encrypt traffic and authenticate the connection.

    The key pair can be used for other things as well, including signing/encrypting email, but that's another topic.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  15. #15
    handscombmp
    Guest

    Re: SSH on Freenas

    I downloaded PuTTY Key generator and i run it so it comes up with a key but it doesn't seem to matter what i paste in Freenas 'Paste a DSA PRIVATE KEY in PEM format here' it always says 'The attribute 'Private key' does not appear to be a valid private DSA key'.

    What should it roughly look like or am i going off on the wrong track.

  16. #16
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: SSH on Freenas

    You probably accidently generated an RSA key pair instead of a DSA key pair, RSA is default with puttygen, select the DSA key generation method with the bottom right radio button in puttygen.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. what (firewall+router) ports do i need to open? (rdp over ssh)
    By lanceuppercut in forum Networking and Broadband
    Replies: 0
    Last Post: 24-02-2008, 10:17 AM

Posting Permissions

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