LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-13-2004, 11:28 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
ssh scp question


I am just following the directions off of a tutorial I found about setting up ssh. At one point I am asked to use scp to cp over my pub key, like this
scp -p ~/.ssh/authorized_keys 192.168.1.101:.ssh/

I understand that 192.168.1.101 is the computer I am copying the file to. I do not understand where on that system it is copying it to. I am confused.
 
Old 10-13-2004, 11:39 PM   #2
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
It is copying the file to a dir under your home dir on the remote machine called .ssh. This is the same as
Code:
scp -p ~/.ssh/authorized_keys 192.168.1.101:~/.ssh/
 
Old 10-13-2004, 11:48 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I need to be logged in as the same name from the computer I am sending it from? For this command to work I need to have the same login name from the computer I am sending it from and the computer I am sending it to? Sorry for my lack of understanding.
 
Old 10-14-2004, 12:26 AM   #4
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
No need to apologize!
If you have different login names do this:
Code:
scp -p ~/.ssh/authorized_keys remote_user_name@192.168.1.101:.ssh/
Just replace "remote_user_name" with your login name on the remote machine.
 
  


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
Problems with SSH / SCP henriette Linux - Networking 1 04-28-2004 01:52 AM
difference between SSH and SCP palanisaravanan Linux - Security 8 12-28-2003 11:07 PM
SSH - where are scp and sftp satimis Linux - Networking 2 11-15-2003 10:27 AM
ssh scp problem ckupris Linux - Networking 6 10-11-2003 05:17 PM
sshd, ssh, scp, help Stimm Linux - Security 3 03-25-2001 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:25 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