Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: ssh not working

  1. #1
    Join Date
    May 2013
    Beans
    39

    ssh not working

    Cannot connect to my own pc using ssh..

    shraddesh@shraddesh-Samsung-Desktop-System:~$ ssh shraddesh@107.109.39.192
    ssh: connect to host 107.109.39.192 port 22: Connection refused
    shraddesh@shraddesh-Samsung-Desktop-System:~$


    There is no problem with the network connection . So Please help me in solving this problem

    Thanks & Regards
    Aditya

  2. #2
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: ssh not working

    - Are you running the ssh server on the other pc?

    - Do you have a firewall, that has closed port 22?

  3. #3
    Join Date
    Nov 2011
    Location
    Zagreb, Croatia
    Beans
    113
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ssh not working

    Check if you have openssh-server package installed. Also check firewall (iptables or ufw) if port 22 is blocked.
    There are only 10 kinds of people in the world -- Those who understand binary, and those who don't.
    S
    adly, technology is dominated by those who manage what they do not understand.
    Zacks

  4. #4
    Join Date
    Jul 2012
    Location
    Moscow
    Beans
    70
    Distro
    Ubuntu

    Re: ssh not working

    from the ssh-server
    Code:
    sudo apt-get install nmap
    nmap localhost
    if you are sure, that openssh-server is installed, try run this:
    Code:
    sudo service ssh restart
    ssh user@localhost

  5. #5
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: ssh not working

    Turn debug messages on:
    $ ssh -vvv shraddesh@107.109.39.192

  6. #6
    Join Date
    May 2013
    Beans
    39

    Re: ssh not working

    Thanks all !!!
    It's working now . I re-installed openshh-server & nmap

  7. #7
    Join Date
    May 2013
    Beans
    39

    Re: ssh not working

    Why do we get this message when we connect to another remote pc using ssh & What does this mean ??

    Write failed: Broken pipe


    When I connect to a server using ssh the above msg pop's up every time a few seconds after I login
    Last edited by adityaharish; May 28th, 2013 at 05:00 AM.

  8. #8
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    nmap

    Quote Originally Posted by adityaharish View Post
    I re-installed openshh-server & nmap
    nmap will be of very limited value if you run it on the same machine you are scanning. For best, most accurate results, you need to run it from a second machine.

  9. #9
    Join Date
    May 2013
    Beans
    39

    Re: ssh not working

    I can't connect to my pc using ssh from a second machine .
    It's always showing this error

    bash-4.1$ scp test.zip shraddesh@107.109.39.132:/home/shraddesh/
    ssh: connect to host 107.109.39.132 port 22: Connection timed out
    lost connection


    I tried the above from another pc

    How can I solve this problem ??

  10. #10
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ssh not working

    Can you connect to 107.109.39.132 from any other pcs, or is it just the one giving the problem?

    If you cannot connect from others, check that sshd is running on 107.109.39.132 and listening at port 22:

    Code:
    service ssh status
    pgrep -lf sshd
    sudo netstat -nltp | grep :22
    The last two should have lines of output containing 'sshd'

    If sshd is not running on 107.109.39.132 then try starting it.

    Code:
    sudo service restart
    Last edited by Lars Noodén; May 27th, 2013 at 01:15 PM.

Page 1 of 3 123 LastLast

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
  •