07-15-2013
Script to log in SFTP server [with username, password]
Hi, everyone, I am trying to write a script to login automatically using username and password to an sftp server (the key authentication has been disabled so I cannot use that method).
I tried to search online for a solution and found a way using "expect" but my boss does not want me to use expect since the passwords need to be provided in plain-text.
I am a newbie about this sftp server. Please help out, thanks alot
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
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
uucpd(1M) uucpd(1M)
NAME
uucpd - UUCP over TCP/IP server daemon
SYNOPSIS
DESCRIPTION
is the server for supporting UUCP connections over TCP/IP networks.
is invoked by (see inetd(1M)) when a UUCP connection is established (that is, a connection to the port indicated in the "uucp" service
specification; see services(4)), and executes the following protocol:
1) The server prompts with "login:". The process at the other end must supply a username.
2) If the username refers to an account without a password, the server then prompts with "Password:". The process at the other end must
supply the password for that account.
The connection is dropped if one or more of the following conditions occurs:
o The username is not valid.
o The username is valid but refers to an account that does not have as its login shell.
o The password authentication fails due to an incorrect password to that account.
o The password authentication fails due to the settings in Refer to the security(4) manpage for detailed information on config-
urable parameters that affect the password authentication.
If the connection is successful, is run (see uucico(1M)). Entries are made in traceable with the and commands (see who(1) and last(1)).
Protocol Restriction
Only the "g" protocol for is supported.
DIAGNOSTICS
All diagnostic messages are returned on the connection, after which the connection is closed.
An error occurred while reading the username.
An error occurred while reading the password.
The username or the password is invalid or the user's login
shell for this account is not
WARNINGS
On Trusted Systems, prohibits to start if any of the following conditions are true :
o The login account is locked (several causes).
o The current time does not match existing time-of-day restrictions for this account.
Under such conditions, will return the message to the connection. The connection is then dropped.
HP-UX 11i Version 3 is the last release to support trusted systems functionality.
AUTHOR
was developed by the University of California, Berkeley and HP.
FILES
configuration file for inetd
optional security file for inetd
service name data base
login data base
security defaults configuration file
SEE ALSO
inetd(1M), uucico(1M), pam(3), updatebwdb(3C), security(4), services(4).
uucpd(1M)