LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2012, 05:42 PM   #1
ISStaras
LQ Newbie
 
Registered: Sep 2012
Posts: 9

Rep: Reputation: Disabled
How to bypass SCP password authentication


I am trying to create a script in which part of it requires me to SCP a couple files over.. my problem is that I get thrown out of the script as soon as the authentication part comes (when it asks for the password)..

Is there anyway I can insert my password into the script so it will read and insert it on its own without me having to manually type it in? In other words, to pass the password over as a paramter?

I've been trying to work with the -o SCP parameter, ssh_option "PasswordAuthentication", but can't seem to figure it out..

Need help, Please & Thank You!
 
Old 09-14-2012, 05:47 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you really want to look at preshared key authentication. That's the "proper" way to not need a password.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Simple authentication bypass for MySQL root revealed LXer Syndicated Linux News 0 06-11-2012 10:00 AM
configure ssh authentication using password file and sftp/scp authentication using ld cameliab Linux - Software 1 08-29-2011 04:28 AM
scp without authentication and ssh with authentication? bkcreddy17 Linux - Server 7 10-08-2008 02:33 AM
bypass username/password grim2k5 Linux - Newbie 7 08-06-2006 07:14 PM
Bypass Login Password sourlinux Linux - Security 5 02-08-2004 08:55 AM


All times are GMT -5. The time now is 10:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration