LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-01-2011, 10:36 AM   #16
kirthika
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
ssh


linux@linux-laptop:~$ sudo /etc/init.d/ssh start
[sudo] password for linux:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start ssh



What does this mean??
 
Old 08-01-2011, 10:38 AM   #17
kirthika
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
ssh

Remote-Host is my own system(linux-laptop) or the system which I am tying to connect(linux-desktop)
 
Old 08-01-2011, 10:46 AM   #18
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
It means you can use the command:
sudo service ssh start

FYI you need to run this command on the desktop. This starts the ssh server.
 
Old 08-01-2011, 10:57 AM   #19
kirthika
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
linux@linux-laptop:~$ sudo service ssh start
[sudo] password for linux:
start: Job is already running: ssh


It tells me as ssh is running already. But now if I want to connect to other system how can I do??
I want to use other system terminal how is it possible?
 
Old 08-01-2011, 11:18 AM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What distribution / version is running on the desktop?
The ssh server must be installed and running on the desktop.
 
Old 08-01-2011, 11:23 AM   #21
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
After reading through this thread, it seems the OP is confused....

On your desktop, perform the following:
Code:
sudo service ssh start
Now from your laptop, enter the following:
Code:
ssh user@192.168.1.50
Just replace 192.168.1.50 with the actual IP address of your desktop, and replace user with the real username you need to use to log in. It will ask for your password, and then you will be able to access your desktop via SSH.

Cheers,

Josh
 
Old 08-02-2011, 07:59 AM   #22
kirthika
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
linux@linux-laptop:~$ sudo service ssh start
[sudo] password for linux:
start: Job is already running: ssh
linux@linux-laptop:~$ ssh shelluser@210.212.246.46
ssh: connect to host 210.212.246.46 port 22: Connection timed out


Why does it gives me an info as timed out?
When I use hostname instead of IP I am getting connected to my system through ssh. But now if I want to connect to other system by knowing their IP and password How can it be done..
Please do help me..
 
Old 08-02-2011, 08:23 AM   #23
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I agree the OP is a bit confused so lets start over.

To connect to the desktop the ssh server must be running on that computer. The command "sudo service ssh start" needs to be run from the desktop not the laptop. You never responded as to what distribution is running on the desktop. Make sure that if you are running a firewall on the desktop that you have allowed incoming ssh traffic.

A connection timed out error means the client could not talk to the server. Either the server is not running, the port number is incorrect or the firewall is blocking traffic.

Quote:
When I use hostname instead of IP I am getting connected to my system through ssh
What system? Please be more specific. Desktop or laptop?
 
Old 08-02-2011, 08:35 AM   #24
kirthika
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
ssh

Now I want to connect my linux laptop and my friend's laptop. Through ssh How can I do that.
I have installed ssh server in both the laptop's. Now when I try to connect to my friend' laptop It tells me as
"could not resolve hostname: name or server not known"
What should I do. Should I check DNS connection or something else?
 
Old 08-02-2011, 08:53 AM   #25
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Will need more information.
Are both laptops on the same LAN?
If not on the same LAN is the friend's laptop behind a firewall?
Do you know your friend's IP address?
 
Old 08-02-2011, 09:01 AM   #26
kirthika
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
ssh

Both the laptop's are in the same LAN network. I know my friends IP address. I doesnot know if her laptop is behind the firewall. How do I check it?
 
Old 08-02-2011, 09:11 AM   #27
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Did you try connecting with the IP address?
If running ubuntu the firewall I believe is disabled by default.
http://www.ubuntugeek.com/gufw-simpl...-firewall.html
 
Old 08-02-2011, 09:17 AM   #28
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by michaelk View Post
Did you try connecting with the IP address?
If running ubuntu the firewall I believe is disabled by default.
http://www.ubuntugeek.com/gufw-simpl...-firewall.html
Ubuntu, by default, is pretty locked down. The OP should be able to ping the machine though; Can you post the results of a five second ping to the server? I just want clarification of ruling out the obvious so we have some ground to work off of.
 
Old 08-02-2011, 09:26 AM   #29
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
My bad, I don't mess with Ubuntu much.
 
Old 08-02-2011, 09:29 AM   #30
kirthika
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
I dont understand. What you mean by the result of five second ping to the server?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set SSH keys on SSH server mansour Linux - Newbie 27 01-16-2011 11:44 AM
Firestarter kills OUTGOING SSH Ubuntu 10.04- rejects SYN/ACK from SSH server edsmithers Linux - Networking 3 09-29-2010 02:53 PM
Using DSL and ssh / ssh-server to access the Windoze desktop GUI On2ndThought Linux - Server 4 11-16-2008 02:17 PM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration