unable to connect via ssh

Discussion in 'Acer Aspire One' started by candy, Sep 20, 2008.

  1. candy

    candy

    Joined:
    Sep 6, 2008
    Messages:
    7
    Likes Received:
    0
    Hi !

    I want to connect from my acer aspire 5920 to the aspire one via ssh but I get the answer : connection refused !

    I've installed the module iptables on the aspire one en then service iptables stop to shutdown the firewall.

    Opening an ssh-session from my aspire one to my aspire 5920 works fine ! But the other way around does not work.

    What can I do ?
     
    candy, Sep 20, 2008
    #1
  2. candy

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    Have you installed the ssh server on your AA1? Do a search in pirut for sshd and you'll find openssh-server. You might also want to install denyhosts, so that you can control what boxes are able to ssh into your AA1.

    Cheers.
     
    rbil, Sep 20, 2008
    #2
  3. candy

    candy

    Joined:
    Sep 6, 2008
    Messages:
    7
    Likes Received:
    0
    Yes I've installed it via add/remove programs : openssh-server, client en -devel...

    No result...
     
    candy, Sep 20, 2008
    #3
  4. candy

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    Do you now have a files called /etc/hosts.allow and /etc/hosts.deny ? Have you looked into them to see whether you're allowing your other ip address to connect?

    Also, if you're going through a router, have you opened up port 22, the default port for ssh?

    Cheers.
     
    rbil, Sep 20, 2008
    #4
  5. candy

    candy

    Joined:
    Sep 6, 2008
    Messages:
    7
    Likes Received:
    0
    I think the router is no problem because I can connect in 1 way: from aspire one to aspire 5920 works fine like I said.

    When connecting from aspire one to aspire 5920 via ssh, I got the question to add my aspire 5920 to the known hosts file and so I did.

    hosts.allow and hosts.deny are both empty.

    I've puth now in hosts.allow :
    ALL : 192.168.123. 127.0.0.1 localhost

    ssh: connect to host 192.168.123.114 port 22: Connection refused

    still get : connection refused
     
    candy, Sep 20, 2008
    #5
  6. candy

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    I haven't installed sshd on the Aspire. Does it install and use portmap? Is there a script to start portmap in /etc/init.d ? Is it running?

    Cheers.
     
    rbil, Sep 20, 2008
    #6
  7. candy

    sdousley

    Joined:
    Oct 1, 2008
    Messages:
    29
    Likes Received:
    0
    Have you actually started the ssh server on the Aspire One?
    Code:
    sudo /etc/init.d/sshd start
    I am yet to find a way to get this to start automatically on boot, but if i find something, i will update this thread :)
     
    sdousley, Oct 2, 2008
    #7
  8. candy

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    Haven't tried it, as I don't have sshd running on the AAO, but maybe you could add the line to the /etc/rc.local file? Probably don't need sudo.

    Let us know if that works.

    Cheers.
     
    rbil, Oct 2, 2008
    #8
  9. candy

    sdousley

    Joined:
    Oct 1, 2008
    Messages:
    29
    Likes Received:
    0
    And I now have a solution to starting ssh on boot.

    You can see the information on this here: viewtopic.php?f=5&t=4629
     
    sdousley, Oct 3, 2008
    #9
  10. candy

    silici0

    Joined:
    Oct 13, 2008
    Messages:
    2
    Likes Received:
    0
    May i ask how do u install the iptables modules?

    Do i need recompil the kernel ?

    Thanks
     
    silici0, Oct 13, 2008
    #10
  11. candy

    Grim Squeaker

    Joined:
    Aug 19, 2008
    Messages:
    410
    Likes Received:
    0
    Yes, otherwise it will be completely useless...

    Then again - why do you need a firewall on the One ?
     
    Grim Squeaker, Oct 13, 2008
    #11
  12. candy

    silici0

    Joined:
    Oct 13, 2008
    Messages:
    2
    Likes Received:
    0
    I will use NAT to put my xbox in the internet... i just waiting ubuntu .10 to xperiment it. ;P

    i got a wireless router but i dont have a wireless adpter in my xbox, so i gonna use the aspireOne as router.

    I do know how to configure the iptables but i donĀ“t know how to recompile with new modules.. ;P

    Thanks cya
     
    silici0, Oct 13, 2008
    #12
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.