Unix/Linux Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

SSH public and private keys

UNIX for Advanced & Expert Users


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-09-2006   -   Original Discussion by new2ss
new2ss new2ss is offline
Registered User
 
Join Date: Jan 2006
Last Activity: 23 January 2014, 8:51 PM EST
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
SSH public and private keys

Firstly, i apologise if i have posted in a wrong section of the forum. Please let me know which is the correct section my post should go to.

I have to SCP a file from one server(server A) to another (server B). I read around that a secure way is to use public and private keys.

Assuming my username is new2ss and the keys are already generated;and private key stored in new2ss/.ssh/identity and the public key in
new2ss/.ssh/identity.pub

i will then copy the identity.pub to new2ss/.ssh/authorized_keys on the remote machine(server B). ( assuming i am also logged in as new2ss - "scp file1 new2ss@serverB"....)

However, if the remote machine is owned by me, and the username on that machine is not new2ss. ( for eg its 'foreignid'). there will not be a new2ss/.ssh/authorized_keys directory for me to copy the public key to.

What are the possible workarounds?
Create a 'foreignid' on my own server
or ask the sys admin on server B to create a user called new2ss ? so that i can generate another set of keys?

OR is there another better workaround?
Sponsored Links
    #2  
Old Unix and Linux 02-10-2006   -   Original Discussion by new2ss
dangral dangral is offline Forum Advisor  
Registered User
 
Join Date: Oct 2002
Last Activity: 31 July 2013, 6:52 PM EDT
Posts: 723
Thanks: 3
Thanked 4 Times in 4 Posts
You need to put the new2ss public key in /home/foreignid/.ssh/authorized_keys.
Sponsored Links
    #3  
Old Unix and Linux 02-13-2006   -   Original Discussion by new2ss
new2ss new2ss is offline
Registered User
 
Join Date: Jan 2006
Last Activity: 23 January 2014, 8:51 PM EST
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks dangral. its working. Linux
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP - Private and Public keys Arpit Narula Shell Programming and Scripting 1 03-26-2012 01:05 AM
Shell script for SFTP using Public and private keys Vidya N Shell Programming and Scripting 8 02-01-2012 05:28 AM
What are public keys in ssh and how do we create the public keys?? ravi3cha Shell Programming and Scripting 1 09-01-2010 02:39 AM
Problem - Creating SSH Public/Private keys. Please help. vickramshetty HP-UX 9 11-24-2009 03:08 AM
ssh public/private Keys richo king UNIX for Dummies Questions & Answers 2 03-13-2008 07:34 PM



All times are GMT -4. The time now is 01:08 AM.