Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using keys for scp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6347
Location: /usr/lib64/lv2

PostPosted: Tue Jun 07, 2011 2:51 pm    Post subject: Using keys for scp Reply with quote

I have key login set up for ssh on my VPS. Can I do this for scp? If so, how?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Jun 07, 2011 2:54 pm    Post subject: Reply with quote

'lo ! been away for a bit, globetrotting and working.

if you've done it for ssh, it's already done for scp

Code:

scp -i ~/.ssh/id_dsa filename.doc user@domain.com:/home/user/

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6347
Location: /usr/lib64/lv2

PostPosted: Tue Jun 07, 2011 6:59 pm    Post subject: Reply with quote

How'd you like the globetrotting? :)

You're right. I've gotten used to ssh'ing in as root (yes, you may scold me for this). What I can do from now on is ssh and scp as a regular user, ssh in as a regular user, su, and move files. That way, I don't need to create a key for root and never have to send a password to my VPS to be sniffed out by script kiddies.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum