![]() |
Unable to ssh into newly installed system???
I am not able to ssh from the remote windows machine into a newly installed UBUNTU gutsy machine.I can ping and ssh from the Ubuntu machine to Windows and other linux machines but couldn't ssh from any remote machine.I disable the firwall for port 22 but it dint work.
Any idea?? |
what does nmap show?
|
I am not able to see nmap output since the command is not there but to my surprise I am finding that #ssh localhost is itself not working....I just installed the OS and unable to ssh...I think I have not formatted the previous OS may be and I may be providing the same IP..Can it be possible?Totally confused?????Plzz ANyone I need quick help..as my project will be ruined????
|
Ubuntu does not come with an ssh service enabled by default. You have to install sshd (the ssh client is a separate package from the server).
|
By the way, the package is called openssh-server
|
Dude...ssh package is there...I can ssh to remote machine but when I am trying to ssh from remote windows or linux machine its not working
|
ajeetraina, there are 2 things for SSH. There's SSH for the shell (which would allow you to go from your box to another), which is always installed. Then, you have the SSH Daemon. The latter being what you need. What this does, is it listens to a port (I believe 22, but I'm likely wrong) for any SSH requests coming in, and allows them to connect. When you go into bash, and type "ssh <server>", you are using the SSH client to connect to the SSH daemon running on the remote server.
To explain it another way, since that sounded a bit convoluted to me... In bash, when you SSH to another machine, you are using the ssh client. The server you are connecting to is an ssh server. it is able to be one as it has the SSH daemon installed and running. For a more familiar example, firefox and a web server. Firefox is a client (ssh from bash), which connects you to a server, which is running Apache (ssh server daemon). If you have Firefox installed on a computer, you don't automatically have the ability to use another firefox browser to connect to it and see pages. So, with Ubuntu's default configuration, you have ssh-client installed, to be used from within bash (think of the Firefox example). To allow for connections, you need to have openssh-server installed (as you would need Apache installed). the easiest way of doing this is to run sudo apt-get install openssh-server. I hope the explanation helped, and you didn't just jump to the quick answer. |
I can only use wget to downlaod the openssh-server.Can anyone help me to download?Other options are not working??
|
Quote:
client = outgoing connections server = incoming connections Open a terminal and enter this command: Code:
aptitude search openssh Code:
i openssh-client - secure shell client, an rlogin/rsh/rcp replacement So install openssh-server. You can use synaptic to do this is you like GUIs, else you can use apt-get or aptitude if you prefer the command line. |
Yep I've had the same thing happen on two different fresh installs, had to install the server side of ssh so fallow matthewg42 suggestions and you should be good to go.
|
Quote:
|
Quote:
I hadn't used ssh much to speak of until about a year ago, that's when I discovered the server side needed to be installed also. I should have made myself a little more clear when I posted. Anyway, I wanted to let ajeetraina know that his/her experience is not unique and that your reply would fix their problem. |
All times are GMT -5. The time now is 03:23 AM. |