Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support How to provide password for rsync in shell script? Post 302937890 by sea on Tuesday 10th of March 2015 11:37:19 AM
Old 03-10-2015
It could also be an issue of an SSH id file.
I have a server I frequently upload data to, and I never ever need to login or provide any kind of password since its setup to use those keyfiles.

If you haven't already, create your personal (or any user using it) ssh keyfile, and upload the *.pub key to a specific directory which I don't know which it is.
And append the key to the list of 'authorized_keys' (which would be in the same dir as the pub key files of the users on the server.

Then 'one' can just execute rsync, and its checking the id file/key in the background allowing the user to transfer data or not.

Hope this helps

Last edited by rbatte1; 03-10-2015 at 02:03 PM.. Reason: Spelling
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

provide a user password from a script

Hi all, passwd <username> < /var/adm/passwd.txt cat /var/adm/passwd.txt abcd1234 abcd1234 when I run this from the script, it comes with: New password: It is not able to pick from the location /var/adm/passwd.txt. thanks in advance. (6 Replies)
Discussion started by: solaix14
6 Replies

2. Shell Programming and Scripting

how to change root password using shell script with standard password

Hi Friends. I am new to scripting now i want to change the root password using the script with standard password. which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies

3. Shell Programming and Scripting

Shell Script to provide "answers" to SSL Cert Request

Hello, I need assistance with creating a shell script to generate SSL Certificate Requests on remote hosts. Below is my stab at this, but I cannot figure out how to pass the requested arguments into the openssl command correctly. I have a major problem with redirecting the "answers" into the... (2 Replies)
Discussion started by: azvelocat
2 Replies

4. Shell Programming and Scripting

rsync - storing password in script

Hello, I wish to store the password in an rsync script so that when prompted it just enters the password. I know I can set up passwordless logins, but I have never been able to do this on this particular server so I am resorting to storing the password in the script: rsync -avz -e ssh... (4 Replies)
Discussion started by: stuaz
4 Replies

5. Shell Programming and Scripting

How to write a shell script for rsync to remote server?

Hello, Can you help me to write a shell script for rsync a folder from my server to remote server ? i do this in ssh by this command : rsync -avz -e ssh /copy/me/ login@serverip:/where/to i want have a shell script that do this command. and you know that this command ask remote... (0 Replies)
Discussion started by: Desperados
0 Replies

6. Programming

How to provide password to the prompt through Java

Hi All, I am using Ubuntu machine with JDK 6. I am running following command on shell- sudo ./somecript . Now, it prompts for sudo password and I provide the sudo password on shell and "somescript" starts running with sudo permissions. What I want to do is, I need to execute... (1 Reply)
Discussion started by: jaibhim
1 Replies

7. Shell Programming and Scripting

How the user will provide the parameters for Oracle db connection in a shell script?

I'm new into unix. My question: is possible to write a shell script which will ask for the ORACLE_HOME, ORACLE_SID, USERNAME, PASSWORD to connect to Oracle db. In generally we have to set the ORACLE_HOME in .profile file. And after putting the 'sqlplus' command it asks for the username &... (6 Replies)
Discussion started by: priya001
6 Replies

8. Shell Programming and Scripting

Provide Password using to the application using the shell script

Hello, I have a requirement to shut down and start up my application on different environments (Dev, QA and Prod). I have around 24 servers. I have to login to each server manually for shutinng down the application. I wrote a shell command on each server and I am invoking those shell... (2 Replies)
Discussion started by: GDSR Raju
2 Replies

9. Shell Programming and Scripting

How to provide password?

Hi , I am trying to unzip some file in a dir using shell script ,but it prompts for password to unzip those files ,how would i provide the passoword in the script it self (1 Reply)
Discussion started by: vikatakavi
1 Replies

10. Shell Programming and Scripting

Can any one provide shell script for this ...

• With this script, users will be able to o Enter into the recycle bin mode. During this mode, all files deleted will be sent to the recycle bin. The recycle bin will be common to all users. o View contents of the recycle bin (his/her file(s) only). o Retrieve a particular file from the recycle... (3 Replies)
Discussion started by: bhavana busetty
3 Replies
DUPLOAD(1)							  Debian Project							DUPLOAD(1)

NAME
dupload - utility to upload Debian packages SYNOPSIS
dupload [options] [changes_file | dir] ... DESCRIPTION
dupload is a tool that enables Debian developers to easily upload their packages to the Debian archive. At least for chiark the upload procedure is somewhat error prone (upload to Incoming/, move it to queue/). dupload checks each non-option argument to find readable files or directories. It parses the files as .changes files, or tries to find such files in the given directories. dupload will warn if the name of the file doesn't end with ".changes". Further processing is done chdir'ed into the directories of the changes files. dupload tests the available checksums and size for each file listed in the .changes file, and fails if it finds a mismatch. If all this goes well, dupload checks if there is an .upload file with the basename of the .changes file. If the file to be uploaded is recorded to have already been uploaded to the specified host, it is skipped. dupload will stop and verify if it sees you try to upload a package with a non-US Section field to a host that is neither non-us.debian.org, security.debian.org nor has the "nonus" option set to 1. After the list of files to upload is finished, dupload tries to connect to the server and upload. Each successfully uploaded file is recorded in the .upload log file. If all files of a package are processed, the .changes file is mailed to the announcement address specified in the configuration file. If files with package.announce, package_UPSTREAMVER.announce, or package_UPSTREAMVER-DEBIANREV.announce exist, these files get prepended to the announcement. UPSTREAMVER and DEBIANREV are to be replaced with actual version numbers. For example, if your package is called foobar, has upstream version 3.14, and Debian revision 2: If you only want the announcement to be made with only ONE upload, you name it foobar_3.14-2.announce. If you want it to be made with every upload of a particular upstream version, name it foobar_3.14.announce. If you want it made with every upload of a given package, name it foobar.announce. Please note: Some mail readers (like elm w/ PGP extensions) don't show mail contents outside of the signed part of a message. Login and password If no login (username) is defined in the configuration file, "anonymous" is used. The password is derived from your login name and your hostname, which is common for anonymous FTP logins. For anonymous logins only, you can provide the "password" in the configuration file. For logins other than "anonymous", you're asked for the password. For security reasons there's no way to supply it via the commandline or the environment. FTP / scp / rsync The default transfer method is FTP. Alternative methods are scp/SSH and rsync/SSH. For scp and rsync, the default login is taken from your local user name. The scp/SSH method only works properly if no password is required (see ssh(1)). When you use scp, it is recommended to set the "method" keyword to "scpb", which will transfer all files in a batch. If you are using an upload queue, use FTP because it's fast. If you are using an authenticated host, always use scp or rsync via SSH, because FTP transmits the password in clear text. OPTIONS
-d --debug [level] Enable more verbose output from the FTP module. -f --force Upload regardless of the transfers logged as already completed. -k --keep Keep going, skipping packages whose checksums don't match. -c --configfile Read the file ./dupload.conf (if it exists). Warning: this is a security risk if you are in a directory where other people can write. That's why it is not the default (unlike the previous versions). --no Dry run, no files are changed, no upload is attempted, only tell what we would do. --nomail Supress announcement for this run. You can send it later by just calling dupload again w/o this option. Note that this option is by default implied for all hosts with the "dinstall_runs" option set to 1. --mailonly Acts as if --no has been specified and but sends the announcements, unconditionally. --noarchive Adds a "X-No-Archive: yes" header so that the announcement will not be archived. You can use the per-host "archive" option in the configuration file. -p --print Print the "database" as read from the config files and exit. If a host is specified via option --to, only this host's entry is displayed. -q --quiet Be quiet, i.e. supress normal output. -t --to nickname optional Upload to nickname'd host. nickname is the key for doing lookups in the config file. You can use the "default_host" configuration option to specify a host without --to. -V --Version Prints version and exits. FILES
Configuration The configuration files are searched as follows (and read in this order, overriding each other): /etc/dupload.conf ~/.dupload.conf Other Various Debian package files are used by dupload: .dsc, .changes, .deb, .orig.tar.gz, .diff.gz dupload itself writes the log file package_version-debian.upload, and the additional announcement files package.announce, package_upstreamver.announce, and package_upstreamver-debianrev.announce. Announcement addresses By default, the announcement addresses are unset because dinstall sends mails instead. BUGS
dupload is tested on Debian systems only. It shouldn't require too much effort to make it run under others systems, though, it's written in Perl. AUTHOR
/COPYRIGHT Copyright 1996 Heiko Schlittermann, 1999 Stephane Bortzmeyer dupload is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is no warranty. SEE ALSO
dupload.conf(5) dupload 2.7.0 February 2011 DUPLOAD(1)
All times are GMT -4. The time now is 09:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy