I have two linux server accounts server1 and server2
From the terminal if I say this command,
Then it prompts for the password
I enter my password and then it starts copying.
But, I would like to do this using bash script because of the size of the files. I searched online before posting and came across using
. This one will not serve the purpose because I don't have admin rights to copy the .pub files on to other servers.
Any pointers on how to pass the password to a bash script that can be submitted to the server for execution will be greatly appreciated.
I have a couple of servers that can't see each other and need to copy files from one to the other. I try to invoke scp from a 3rd server that can see both servers - get error msgs that are cryptic.
from server C
I can do
scp user@serverA:~/file .
scp file user@serverB:~
but if I try to... (2 Replies)
I have four servers that for all intents and purposes are the same (I have the same profile on all four), North, South, Brooklyn & Queens.
I have a script that scp's a file from Queens to brooklyn, and it runs just fine. I tried to replicate the script on South, to transfer a file to North, and... (1 Reply)
Is there a way to connect betwwen two servers A and B without using prompting for a password .....
I am writing a script which includes picking up files from and puts them to B. using mget ..
To make the script fully automable I am looking for a passwordless authentication...
Any... (2 Replies)
Hi All,
I am a total noob to the Unix world, and i hope to learn a lot from this wonderful community. Here's my first post and question , i am trying to SCP a file to multiple servers (multiple destinations) through this little script :
#!/bin/ksh
# copy files
# File to be copied... (7 Replies)
I like to copy a file from one server server1 from path path1 to another server server2 to path path2.
User logging in both the servers are same say user1
I tried to use ssh to generate public/private key pairs and then copy without prompting for password.
These are the steps i followed
... (5 Replies)
I am trying to copy a file from remote machine using scp. I followed the steps to configure public/private key usage. But still prompting for password when I do ssh.
I did the following steps to configure scp without asking password
Step 1 : local host > ssh-keygen -t rsa and when prompted... (9 Replies)
Dear all,
I have two servers A and B. I want to do scp with out password between these two servers.
I created ssh-keygen and copied the id-rsa.pub file to each of them in authorized_keys.
But I could login only from B to A with out password. From A to B it is asking for a password.
... (5 Replies)
Hello,
Could someone please help me with the below requirement?
I need to automate scp files between two servers. I have a file having server names and paths to the folder like below
server1 /path/to/folder/ server1 /path/to/folder/
server1 /path/to/folder/ server2 /path/to/folder/... (4 Replies)
Hello experts,
OS : CentOS
Could you please help me with the following scenario :
I wish to use scp command in order to copy a file (say : f1.txt) from server 2 to server 1.
Both servers have a common user (say : user1) configured. Also, the file is owned by the same user on both... (2 Replies)
Discussion started by: H squared
2 Replies
LEARN ABOUT SUNOS
list-authdbs
asadmin-list-authdbs(1AS) User Commands asadmin-list-authdbs(1AS)NAME
list-authdbs - gets the authorized database
SYNOPSIS
list-authdbs --user admin_user[--password admin_password][--host localhost] [--port 4848][--passwordfile filename][--secure|-s][--instance
instance_name] --virtualserver virtualserver_ID authdb_ID
Gets the access control lists associated with the named server instance.
OPTIONS --user administrative user associated for the instance.
--password administrative password corresponding to the administrative user.
--host host name of the machine hosting the administrative instance.
--port administrative port number associated with the administrative host.
--passwordfile file containing passwords appropriate for the command (e.g., administrative instance).
--secure if true, uses SSL/TLS to communicate with the administrative instance.
--virtualserver virtual server ID. It can also be referred to as the variable $id in an obj.conf file. A virtual server ID cannot
begin with a number.
OPERANDS
instance_name name of the instance.
Example 1: Using list-authdbs
asadmin> lsit-authdbs --user admin --password adminadmin --host fuyako --port 7070 --virtualserver server1 server1
default
sampleAuth
Where: default and sampleAuth are the authdb IDs in virtual server server1 and instance server1 listed.
asadmin% list-authdbs --instance server1
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-authdb(1AS), asadmin-delete-authdb(1AS)J2EE 1.4 SDK March 2004 asadmin-list-authdbs(1AS)