Saturday, January 21, 2012

Linux: Not Able To SSH

Some very common problems we face related to ssh.
  - Not able to ssh to different machine
  - Not able to ssh in my own machine from somewhere else
  - Ping to My Machine works but not ssh

Solution I present is wrt Ubuntu-

Ensure the following. I am sure this will resolve all your problems
  • Ensure you have both client and server installed in your system to be able to ssh to other machine and ssh back to your machine from somewhere else
    • apt-get install openssh-server openssh-client
  • Ensure you have ssh running in system you wish to ssh
    • /etc/init.d/ssh start
    • service ssh start
  • Even with your ssh running you will not be able to ssh to a machine with firewall enable. Stop it or alternative is to enable your 22 port
    • uwf enable 22

No comments:

Post a Comment