Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

SFTP - Private and Public keys

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-26-2012   -   Original Discussion by Arpit Narula
Arpit Narula Arpit Narula is offline
Registered User
Join Date: Mar 2012
Last Activity: 24 May 2012, 11:25 PM EDT
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
SFTP - Private and Public keys

Hi All,

I have a query....say on server A, I have generated the Private and Public keys and shared the public key with server B.

Now i can surelyconnect(without password) from server A to server B.....
but can i similarly connect from server B to server A as well

Sponsored Links
Old Unix and Linux 03-26-2012   -   Original Discussion by Arpit Narula
Chubler_XL's Unix or Linux Image
Chubler_XL Chubler_XL is offline Forum Staff  
Join Date: Oct 2010
Last Activity: 20 November 2017, 7:35 PM EST
Posts: 3,420
Thanks: 147
Thanked 1,212 Times in 1,112 Posts
No, Imagine you had a production server and a testing server you may want to be able to ssh to testing from production without password, but not the other way.

server A must allow server B's public key, if you want B -> A as well.
Sponsored Links

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
Shell script for SFTP using Public and private keys Vidya N Shell Programming and Scripting 8 02-01-2012 05:28 AM
SFTP in a shell script without public/private key Alexis Duarte Shell Programming and Scripting 6 12-30-2009 09:12 PM
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
SSH public and private keys new2ss UNIX for Advanced & Expert Users 2 02-13-2006 11:06 PM

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