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 03-18-2019, 12:43 PM   #1
mevg1201
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
Thumbs up how can i put automatically response when ssh-add ask for passphrase?


hello guys

im tryin to run a script file

this is my script file

Code:
     which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
    eval $(ssh-agent -s)
    # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
    ssh-add <(echo -e “$SSH_PRIVATE_KEY”)
when the command ssh-add runs ask me "Enter passphrase for" my script fails

how can wirte automaically the passphrase?

any suggestion?
 
Old 03-18-2019, 03:05 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,814
Blog Entries: 15

Rep: Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661
https://www.thegeekdiary.com/how-to-...Speed=noscript
 
  


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
[SOLVED] How to make gpg ask for passphrase in terminal? ddenial Linux - Newbie 5 01-18-2019 01:05 AM
[SOLVED] gpg does not ask to confirm passphrase rybnik Linux - Newbie 2 01-07-2019 10:34 PM
[SOLVED] gpg2 doesn't ask for passphrase montagdude Slackware 6 10-29-2018 09:28 PM
How to make clonezilla read ecryptfs passphrase from .txt file without ask me to enter it bodimo Linux - Security 2 10-18-2017 11:56 AM
KMail and PGP/GPG not working - doesn't ask for passphrase steve1401 Linux - General 2 02-08-2005 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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