SFTP command with certificate authentication | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

SFTP command with certificate authentication

Red Hat


Tags
certificate, command, login, redhat, sftp

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-16-2011
landossa landossa is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 19 August 2014, 11:52 PM EDT
Posts: 43
Thanks: 29
Thanked 1 Time in 1 Post
CPU & Memory SFTP command with certificate authentication

Hello list,

I am attempting to connect from a Redhat 6 machine to another linux machine. When I use the SSH command and specify my private key to use this it all connects fine, however there doesn't seem to be an option in the SFTP command to specify my private key for authentication.

In cygwin for windows I can just use the -i switch as follows:

sftp -i c:\cygwin\home\sshkeys\private_key user@sftpserver

However the -i switch doesn't seem to exist in Redhat/CentOS 6.

Can anyone shed some light on how I can get the same functionality to work from Redhat?

thanks
Sponsored Links
    #2  
Old 08-17-2011
verdepollo's Avatar
verdepollo verdepollo is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 27 August 2014, 10:55 AM EDT
Location: Mexico
Posts: 725
Thanks: 11
Thanked 105 Times in 101 Posts
Try this:


Code:
sftp -oIdentityFile=/your/private/key user@sftpserver

The Following User Says Thank You to verdepollo For This Useful Post:
landossa (08-17-2011)
Sponsored Links
    #3  
Old 08-17-2011
landossa landossa is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 19 August 2014, 11:52 PM EDT
Posts: 43
Thanks: 29
Thanked 1 Time in 1 Post
it works!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passwordless authentication of SFTP script uday.shankar Shell Programming and Scripting 13 11-04-2009 11:39 AM
Sftp Key Authentication Issue SteveBurch UNIX for Advanced & Expert Users 3 05-28-2009 11:27 AM
sftp/scp/ssh script with password as authentication james_falco HP-UX 4 05-27-2009 02:04 PM
SFTP- Non-interactive user authentication dheeruchakri Shell Programming and Scripting 1 03-10-2006 11:14 AM



All times are GMT -4. The time now is 06:00 AM.