Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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.
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..
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?
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?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.