ssh in Ubuntu
Hi geeks,
I have two linux machines and LAN between them. The one is Ubuntu9.10 server and another one Ubuntu8.4 desktop. The hostname of the server is "ubuntuserver" and the client one "Ubuntu-Linux". I try to access the server with ssh command from client, as in the ssh tutorial found on google search. Quote:
I am new to ubuntu networking and ssh.I have no idea how to solve it. I can sucessfully ping to each machines.Any can help me out please? |
Try ssh with ip rather than hostname
|
Hi,
Also, check on the server that SSH is running and listening for connections. You can do that with this command: Code:
sudo netstat -al | grep ssh Code:
tcp 0 0 *:ssh *:* LISTEN Eric |
Quote:
Quote:
|
Quote:
|
but when i try in client one , i got this
Quote:
|
On this server 192.1.254.103.
See whether ssh is up and running if it si not running start it Code:
/etc/init.d/sshd start |
Quote:
PMP already posted how to start it. But did you install it on your server? If it's the same as Debian, then it's not installed by default and you should install it with: Code:
sudo apt-get install ssh Kind regards, Eric |
ah, there is no such file as sshd under /etc/init.d/
how do i do? ssh , the one i have now is already installed with the server. |
Hello,
What do you mean by 'the one I have now'? Did you install a SSH server when you installed Ubuntu server? Can you post the output of following command: Code:
which sshd Eric |
Hi,
Just saw little error in the post of PMP. The command to start SSH daemon is: Code:
sudo /etc/init.d/ssh start Kind regards, Eric |
@EricTRA
Correct !!, Thanks |
no file as ssh under /etc/init.d/ as well .
do i need to reinstall ssh on the server? |
oh , the command "which sshd" prompts nothing. It seems i forgot to install ssh server when i install ubuntu server.
|
Hello,
So, that's why you cannot connect :) Install it by typing in a terminal: Code:
sudo apt-get install ssh Kind regards, Eric |
All times are GMT -5. The time now is 02:51 PM. |