LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2005, 05:06 PM   #1
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Rep: Reputation: 15
Need help using ssh


Hi,

I have two machines at home running linux (one is FC3 the other is FC4). The machines are sharing the same internet connection with a router and I'm wondering how I can ssh and scp from one machine to the other. Any help would be great!!

thanks
 
Old 11-27-2005, 05:18 PM   #2
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
Re: Need help using ssh

Quote:
Originally posted by thorney
Hi,

I have two machines at home running linux (one is FC3 the other is FC4). The machines are sharing the same internet connection with a router and I'm wondering how I can ssh and scp from one machine to the other. Any help would be great!!

thanks
Use the internal network IP numbers for this.

e.g. the router has a IP address on the outside world. And a IP on the inside (your private network).
Your FC machines also have a private IP adress wich isn't directly accessable on the net, by default.

If you know these addresses of the FC machines (issue ifconfig command) then you can access the machines by these addresses.
e.g.

fc3 has 192.168.1.10
fc4 has 192.168.1.20

if you want to ssh from fc3 to fc4 issue a command like:

ssh username@192.168.1.20

and vise versa...

Last edited by teebones; 11-27-2005 at 06:12 PM.
 
Old 11-27-2005, 05:26 PM   #3
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Original Poster
Rep: Reputation: 15
Cool it worked!

thanks a lot!
 
Old 11-27-2005, 05:39 PM   #4
mmaki
Member
 
Registered: Nov 2005
Location: Thousand Oaks, CA
Distribution: Debian
Posts: 33

Rep: Reputation: 15
scp is very similar

scp source destination

so...

scp source_file user_name@destination_ip_address:\path\to\dir

or

scp user_name@source_ip_address:\path\to\dir destination_file

see man scp for all the details...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 10:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 12:53 PM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 06:18 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 08:17 PM


All times are GMT -5. The time now is 08:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration