08-06-2007
want to do ssh login with out password
Quote:
Originally Posted by
RishiPahuja
Thanks Dangral
Hi
I have to write script whic will do ssh login to Remote server with out password and then secure file copy to that remote server.
and i want that to be done automatically(means no prompt should be displyed)
can u please help me in this for automation
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All:cool:,
i tried to automate SFTP process after passwordless authendication.
Stil i am getting error...
Can anyone help....
-------------------
sample code below
-------------------
sftp -v $mdskk@100.4.4.75 << EOF
cd /data
mget *.tar.gz
bye
EOF... (2 Replies)
Discussion started by: senthil_seera
2 Replies
2. AIX
Hi,
Could you please help to solve the below issue...
my requirement is automate the SFTP between UNIX and Windows server.
I want to get and put some files to UNIX AIX machine(SFTP client) to Windows server(SFTP server).
For that, i have generated key pair (private/public) in my AIX machine .... (6 Replies)
Discussion started by: mahiban
6 Replies
3. Shell Programming and Scripting
Hi,
I read a couple of forum entries about scripting sftp using the '-b' option, but in my case it still prompts for the password. Does anyone have a sample script for an sftp block to 'get' files from the remote server without prompting for a password?
Both the remote and the local servers... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
4. Shell Programming and Scripting
How to automate sftp with out using expect script?
My batch file has the password but it is not taking. Please see below.
I want to use this sftp connection in a loop for pushing new files in a directory one at a time. Hence I can not use an expect script.
bash-2.05$... (5 Replies)
Discussion started by: Tuxidow
5 Replies
5. Shell Programming and Scripting
Hi all,
I have a task on my plate which is of high priority.
I need an automated email alert that checks FTP notices subdirectory on a daily basis and forwards any word files to a group of people. This word files gets created whenever there is an issue with FTP connectivity.
Please help...... (1 Reply)
Discussion started by: stunnerz_84
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I'm using Sun Solaris OS. I have configured sftp and can exchange files in command prompt. Now when I try to automate it in ksh script, facing issue as I want to capture the status if the transfer was successful or not. So tried sftp -b and sftp -B option but its not working.
The... (3 Replies)
Discussion started by: shinny
3 Replies
7. Shell Programming and Scripting
I am trying to use a for loop in my expect cmdFile that I am calling.
I want to be able to call either one file name or a series of file names in the working directory (that I won't know the names before hand) and then pass the names to the sftp program.
Something like for i in (ls *txt)
do (0 Replies)
Discussion started by: vedder191
0 Replies
8. Shell Programming and Scripting
Greetings, guys. I'm not much of a programmer forgive me for being a noob, because of someone leaving, I was put in an IT spot where I have to figure out a few things. Being new to Linux and programming has been a challenge.
My boss has asked me to create an automated script to connect to a 3rd... (7 Replies)
Discussion started by: giovannym
7 Replies
9. UNIX for Dummies Questions & Answers
Hi, guys, I am trying to automate a sftp process using "expect" method (since the key authentication method is disabled in my company network, there is no helping it).
In order to try, I type in the command manually:
sftp @ > << EOF
>cd
>ls -l
>EOF
>Connecting to
@servername password:
... (3 Replies)
Discussion started by: warmboy610
3 Replies
10. Shell Programming and Scripting
hi,
I am trying to automate a file download process using sftp. There is some logic to download files.
1) I need to login to destination server and then go to folder.
2) find list of files and count
3) using list of files I need to eliminate three selective files and download remaining... (1 Reply)
Discussion started by: getmilo
1 Replies
LEARN ABOUT CENTOS
ipa-replica-install
ipa-replica-install(1) IPA Manual Pages ipa-replica-install(1)
NAME
ipa-replica-install - Create an IPA replica
SYNOPSIS
ipa-replica-install [OPTION]... replica_file
DESCRIPTION
Configures a new IPA server that is a replica of the server that generated it. Once it has been created it is an exact copy of the original
IPA server and is an equal master. Changes made to any master are automatically replicated to other masters.
The replica_file is created using the ipa-replica-prepare utility.
If the installation fails you may need to run ipa-server-install --uninstall before running ipa-replica-install again.
The installation will fail if the host you are installing the replica on exists as a host in IPA or an existing replication agreement
exists (for example, from a previously failed installation).
A replica should only be installed on the same or higher version of IPA on the remote system.
OPTIONS
BASIC OPTIONS
--setup-ca
Install and configure a CA on this replica. If a CA is not configured then certificate operations will be forwarded to a master with
a CA installed.
--ip-address=IP_ADDRESS
The IP address of this server. If this address does not match the address the host resolves to and --setup-dns is not selected the
installation will fail. If the server hostname is not resolvable, a record for the hostname and IP_ADDRESS is added to /etc/hosts.
-p DM_PASSWORD, --password=DM_PASSWORD
Directory Manager (existing master) password
-w ADMIN_PASSWORD, --admin-password=ADMIN_PASSWORD
Admin user Kerberos password used for connection check
--mkhomedir
Create home directories for users on their first login
-N, --no-ntp
Do not configure NTP
--no-ui-redirect
Do not automatically redirect to the Web UI.
--ssh-trust-dns
Configure OpenSSH client to trust DNS SSHFP records.
--no-ssh
Do not configure OpenSSH client.
--no-sshd
Do not configure OpenSSH server.
--skip-conncheck
Skip connection check to remote master
-d, --debug
Enable debug logging when more verbose output is needed
-U, --unattended
An unattended installation that will never prompt for user input
CERTIFICATE SYSTEM OPTIONS
--skip-schema-check
Skip check for updated CA DS schema on the remote master
DNS OPTIONS
--setup-dns
Generate a DNS zone if it does not exist already and configure the DNS server. This option requires that you either specify at
least one DNS forwarder through the --forwarder option or use the --no-forwarders option.
--forwarder=IP_ADDRESS
Add a DNS forwarder to the DNS configuration. You can use this option multiple times to specify more forwarders, but at least one
must be provided, unless the --no-forwarders option is specified.
--no-forwarders
Do not add any DNS forwarders. Root DNS servers will be used instead.
--reverse-zone=REVERSE_ZONE
The reverse DNS zone to use
--no-reverse
Do not create new reverse DNS zone. If a reverse DNS zone already exists for the subnet, it will be used.
--no-host-dns
Do not use DNS for hostname lookup during installation
--no-dns-sshfp
Do not automatically create DNS SSHFP records.
EXIT STATUS
0 if the command was successful
1 if an error occurred
3 if the host exists in the IPA server or a replication agreement to the remote master already exists
IPA
May 16 2012 ipa-replica-install(1)