LinuxQuestions.org
Help answer threads with 0 replies.
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 03-21-2010, 10:28 AM   #1
anurupr
Member
 
Registered: Mar 2010
Posts: 71

Rep: Reputation: 16
i need to use scp in my Qt Application


i need to send files using scp with my Qt application but the problem is the password is being asked everytime i send a file using scp. is it possible to somehow to automate the password-entering process
 
Old 03-21-2010, 12:13 PM   #2
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
for this you have to generate public keys and then place them to the remote machine.
In this way you would not need to typr password.

type command ssh-keygen
then just press enter dont give passphrase value
you can see you keys at

~/.ssh/id_rsa.pub

then copy the public keys and paste at remote machine
~/.ssh/authorized_keys

then next time when you will ssh the system it will no ask for pasword and same case for scp
 
1 members found this post helpful.
Old 03-21-2010, 12:20 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It is a good idea to lock your private key (it is only used on the client side) with a passphrase.

You can use ssh-agent to enable entering the key once when you start a session. After that it is unlocked.

eval $(ssh-keygen)
ssh-add
 
1 members found this post helpful.
  


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
KDE jar MIME is application/zip and not application/java-archive in Ubuntu Intrepid? arobinson74 Linux - Software 2 09-18-2009 11:40 AM
No packages listed in Gnome application manager gpk-application 2.27.2 pauljam20 Fedora 3 07-01-2009 12:27 AM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
send signal to privileged application from unprivileged application aral Programming 5 10-27-2006 12:34 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM

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

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