Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Script to log in SFTP server [with username, password] Post 302832503 by millan on Monday 15th of July 2013 03:44:57 AM
Old 07-15-2013
The only way is to use key authentication.
This User Gave Thanks to millan For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

username password in script

Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script?? something like ssh a@b -p password ??? (5 Replies)
Discussion started by: roshanjain2
5 Replies

2. Solaris

i wanto hardcode password for a username to ssh to a server using script

Dear all i want to ssh to a server via running a shell script with a username and i want to hard code the password for that particular username can u help me please Thank u Naree (8 Replies)
Discussion started by: naree
8 Replies

3. UNIX for Advanced & Expert Users

Login through SFTP using username and password

Hi All, I want to login to a server through SFTP by giving username and password, in an automated script. I know that this can be done through public key authentication, but my requirement is to login ONLY through username and password. I am using GNU/Linux server. Please advise me !!!... (4 Replies)
Discussion started by: sparks
4 Replies

4. AIX

SFTP from one server to another with password

All, Is there a possibility to sftp a file from one AIX server to another AIX server with password? I do not want to use public or private key option as we would have required privileges for creating the keys. So Please provide the needful with a sample script. Thanks in Advance, Vijayakumar S... (2 Replies)
Discussion started by: kuppu.uncle
2 Replies

5. UNIX and Linux Applications

Regarding NFS server username/password authentication

Hi; I had set up NFS server in one ubuntu box and mounted few directories using it. In order to access those directories across the network i m using j-ftp(an open source java network client) from other boxes in the same network.I am able to view my mounted directories in the server through it.... (1 Reply)
Discussion started by: ajaypadvi
1 Replies

6. Shell Programming and Scripting

Auto Script to Access external Server via SFTP using Password and Key

Hello All, I am stuck! I have access to an external server via SFTP. In order to access the external server I was given a specific port, password, and a ppk. I would to create a script on my server end that can I can setup as a corn job, that will connect to the external server and... (1 Reply)
Discussion started by: kingr008
1 Replies

7. HP-UX

Connect to remote server using sftp with password define within command/script

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

8. Solaris

Script to get files from remote server to local server through sftp without prompting for password

Hi, I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script. Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies

9. Shell Programming and Scripting

How to send Two different password in Single script, having same username..?

Hi Team, i want to input two password for single node like pass1/pass2 one of the pass1 is working some node and pass2 is working for some nodes . For nodes having pass1 i have to run different script and for nodes having pass2 i have to run different script Sooo how can put two pass... (3 Replies)
Discussion started by: Ganesh Mankar
3 Replies

10. Shell Programming and Scripting

How can i su automaticaly in same server with different username and same password?

Hi I am new to shell scripting, Can you please help me in writing a script that can switch user in same server with different user name and same password. I want to perform some functional task in a particular user and need to switch user and perform same activity in another user and so on ... ... (4 Replies)
Discussion started by: Dew
4 Replies
WESTCOS-TOOL(1) 						   OpenSC Tools 						   WESTCOS-TOOL(1)

NAME
westcos-tool - utility for manipulating data structures on westcos smart cards SYNOPSIS
westcos-tool [OPTIONS] DESCRIPTION
The westcos-tool utility is used to manipulate the westcos data structures on 2 Ko smart cards / tokens. Users can create PINs, keys and certificates stored on the card / token. User PIN authentication is performed for those operations that require it. OPTIONS
--change-pin, -n Changes a PIN stored on the card. User authentication is required for this operation. --certificate file, -t file Write certificate file file in PEM format to the card. User authentication is required for this operation. --finalize, -f Finalize the card. Once finalized the default key is invalidated, so PIN and PUK cannot be changed anymore without user authentication. Warning, un-finalized are insecure because PIN can be changed without user authentication (knowledge of default key is enough). --generate-key, -g Generate a private key on the card. The card must not have been finalized and a PIN must be installed (ie. the file for ithe PIN must havei been created, see option -i). By default the key length is 1536 bits. User authentication is required for this operation. --help, -h Print help message on screen. --install-pin, -i Install PIN file in on the card. You must provide a PIN value with -x. --key-length length, -l length Change the length of private key. Use with -g. --overwrite-key, -o Overwrite the key if there is already a key on the card. --pin-value value, -x value Set value of PIN. --puk-value value, -y value set value of PUK (or value of new PIN for change PIN command see -n). --read-file path, -j path Read the file path from the card. The file is written on disk with name path. User authentication is required for this operation. --reader num, -r num Use the given reader. The default is the first reader with a card. --unblock-pin, -u Unblocks a PIN stored on the card. Knowledge of the PIN Unblock Key (PUK) is required for this operation. -v Causes westcos-tool to be more verbose. Specify this flag several times to enable debug output in the OpenSC library. --wait, -w Wait for a card to be inserted. --write-file path, -k path Put the file with name path from disk to card. On the card the file is written in path. User authentication is required for this operation. AUTHORS
westcos-tool was written by Francois Leblanc <francois.leblanc@cev-sa.com>. opensc 06/17/2014 WESTCOS-TOOL(1)
All times are GMT -4. The time now is 06:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy