LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-16-2013, 11:25 AM   #1
mshlinux
Member
 
Registered: Mar 2013
Location: Yangon, Myanmar.
Distribution: Fedora, Arch
Posts: 177

Rep: Reputation: Disabled
how to use ssh


I am trying to connect two computers using ssh via internet.
One is desktop and another is laptop. They both are running debian wheezy with ssh installed.

At first, let me mention how I do for internet connection.
To go online on the Desktop or Laptop, I enable data packet and wifi hotspot of my android phone.
Then I make computer receives wifi from android and enjoy internet connection.

In my testing, I can do "remote login" each other if both computers are receiving same wifi from only one andorid phone.
It can be ok even if data packet on the android phone is disabled.

But, if I arrange two computers receive different wifi respectively from two android phones with data packets enabled,
I can't do "remote login". The message I get is

Quote:
msh@dbndst:~$ ssh msh@debian
ssh: connect to host debian port 22: No route to host
(Laptop's hostname is just debian and Desktop's hostname is dbndst)

How can I do "remote login" between them using two different phone.
(Note: using phone for internet connection is only one option available for me)

Last edited by mshlinux; 06-16-2013 at 11:28 AM.
 
Old 06-16-2013, 12:43 PM   #2
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 564

Rep: Reputation: 131Reputation: 131
You obviously have to place the ip there instead of the hostname...
 
Old 06-16-2013, 01:13 PM   #3
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Is the ssh-server package installed? Have you created and exchanged the appropriate keys (RSA, for instance) between the devices involved? If not, do so
 
Old 06-16-2013, 09:34 PM   #4
mshlinux
Member
 
Registered: Mar 2013
Location: Yangon, Myanmar.
Distribution: Fedora, Arch
Posts: 177

Original Poster
Rep: Reputation: Disabled
yes, I have ssh-server package installed.
and also I created and exchanged the appropriate keys (RSA, for instance).
but it still doesn't work.

and I also tried with ip instead of hostname.
but it still doesn't work.

anyway, thanks for your replies...
 
Old 06-17-2013, 03:07 AM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Can you ping the devices from each other (i.e. is there a network connection between them)?
 
Old 06-17-2013, 09:09 AM   #6
amberluvsit
LQ Newbie
 
Registered: Jun 2013
Location: cali
Distribution: debian
Posts: 9

Rep: Reputation: Disabled
Try the telnet command ... if you can't get a connection, then it's a network problem.
 
Old 06-17-2013, 08:45 PM   #7
mshlinux
Member
 
Registered: Mar 2013
Location: Yangon, Myanmar.
Distribution: Fedora, Arch
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Can you ping the devices from each other
hornestly, I don't know how to ping between devices(Phones).
Quote:
(i.e. is there a network connection between them)
no connection between them. they have just internet connection sparately using data packet enabled.

telnet command doesn't work too. so it is a network problem?

in my testing, it seems that SSH is available only on the same wifi network.
but I don't think so...because SSH is mentioned as to connect to remote computer through internet.
It says "through internet", not "on the same wifi network".

anyhow, I am learning more about ping and telnet and trying again ping and telnet command.
 
  


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
LXer: SSH an ill-managed mess says SSH author Tatu Ylonen LXer Syndicated Linux News 0 04-12-2013 03:30 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 03:15 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 - Distributions > Debian

All times are GMT -5. The time now is 05:35 AM.

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