10-09-2008
Specify password in SFTP command
Hi,
How can I specify a password on the scp command line so that it should not prompt for the password?
Shabu
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am working on a script to automate and SFTP that I am currently doing to a company that does not allow for a .ssh profile to be created.
I have search and read about the -b option and am wondering if i can get some more information about it.
I tried to right a file containing the password... (3 Replies)
Discussion started by: jaycheetwood
3 Replies
2. UNIX for Advanced & Expert Users
I would like to use SFTP from command line without entering userid and password.
Here is what I have gathered and did.
1) Create a public and private key pair for the protocol you want to use.
To create a key pair for use by SSH2, enter:
ssh-keygen -t dsa
I did that and got... (7 Replies)
Discussion started by: Hangman2
7 Replies
3. Shell Programming and Scripting
Hi team,
I know if we need to transfer the files between between 2 servser, we use SFTP through key setup between 2 server.
currently There are some problems and we are not able to setup keys between servers.
How can i use password with SFTP for temporary solutions, so that the file... (6 Replies)
Discussion started by: Amit.Sagpariya
6 Replies
4. Shell Programming and Scripting
Hi
i have generate public private key pair using command
ssh-keygen -t rsa -b 2048
and then it made the two keys under the directory
~/.ssh ( in server 1)
one is public key and another one is private ..
i copied public one key onto my second server under the directory
... (22 Replies)
Discussion started by: aishsimplesweet
22 Replies
5. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
6. Shell Programming and Scripting
Hi Guys,
I need to know how can i achieve SFTP "with" password in a shell script.
I have already done passwordless key generation thing and it is working but at the moment i am interested in passing a password.
And another question I have is say i have a.ksh and b.sh scripts...Can i invoke... (6 Replies)
Discussion started by: Arpit Narula
6 Replies
7. Shell Programming and Scripting
Hi all,
i have to sftp a file to another server
I don't have "expect" or sshpass on my machine its solaris 10,
i want to pass password in command line or
after doing this
sftp user@server how to automatically provide the password as input ( stored in some variable or so)
... (1 Reply)
Discussion started by: zozoo
1 Replies
8. Shell Programming and Scripting
Hi All,
I am trying to transfer a file from one server to a remote server using SFTP. Client is not ready for key setup.
I am working on Solaris 10.
Here is the code.
#!/bin/ksh
# sample automatic Sftp script to dump a file
USER="user1"
PASSWORD="pass1"
HOST="host1"
sftp $USER@$HOST... (6 Replies)
Discussion started by: megha2525
6 Replies
9. HP-UX
I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need to manually enter it.
I want sftp can read a password define in script or from file, so it can... (1 Reply)
Discussion started by: ketanraut
1 Replies
10. Shell Programming and Scripting
I have been tasked with scripting a sftp transfer from my clients sftp server to a vendor. I have been given a user name and password. This is an older OEL server, 5.2. I am not able to install any packages on this system. It does not have expect, ssh-pass, or any other ssh password helper... (6 Replies)
Discussion started by: mtrgoose
6 Replies
LEARN ABOUT HPUX
vparadmin
vparadmin(1M) vparadmin(1M)
NAME
vparadmin - modifies attributes for the virtual partition flexible administrative capability
SYNOPSIS
vp_name] | |
DESCRIPTION
The command is used to add or delete a Designated-Admin vPar. It can also be used to change the virtual partition flexible administrative
password.
Options are valid when the virtual partition flexible administrative capability is enabled.
Options
recognizes the following command line options and arguments. The options are mutually exclusive.
Adds the virtual partition
to the Designated-Admin vPar list in a secure virtual partition environment. It will prompt for the existing virtual parti-
tion flexible administrative password before allowing the addition.
Deletes the virtual partition
from the Designated-Admin vPar list. It will prompt for the existing virtual partition flexible administrative password
before allowing the deletion.
Changes the virtual partition flexible administrative password.
It will prompt for the old password for validation.
Displays the Designated-Admin vPar list.
If no arguments are supplied, indicates whether the virtual partition flexible administrative capability is enabled or disabled.
SECURITY RESTRICTIONS
This command is restricted to processes owned by a superuser.
RETURN VALUE
The command exits with one of the following values:
Successful completion.
One or more error conditions occurred.
EXAMPLES
Use vparadmin without any options:
The virtual partition fle xible administrative capability is disabled.
Add the name of the virtual partition called to the Designated-Admin vPar list:
---------- Designated-Admin virtual partitions ----------
Oslo
To change the virtual partition flexible administrative password:
Old password:
New password:
Re-enter new password:
vPar flexible administrative password successfully changed.
ERRORS
displays error messages on standard error for any of the following conditions:
o An invalid option is specified.
o An invalid value is specified for an option or a value is omitted.
o does not exist in the monitor database.
o One or more options are specified more than once.
AUTHOR
was developed by the Hewlett-Packard Company.
SEE ALSO
vparboot(1M), vparcreate(1M), vparmodify(1M), vparremove(1M), vparreset(1M), vparresources(5), vparstatus(1M), vpmon(1M).
vparadmin(1M)