Sponsored Content
Full Discussion: Automate SFTP is not working
Top Forums Shell Programming and Scripting Automate SFTP is not working Post 302245943 by jim mcnamara on Saturday 11th of October 2008 08:50:19 PM
Old 10-11-2008
It is apparently attempting kerberos authentication, your local host does not seem to support it.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automate batchfile generation for sFTP

Hey all, I am writing a script for sFTP using batchfile option (-B). My script is supposed to monitor a certain directory for several files and when they are found I will send them to a testing server. So using a static batchfile wouldn't be feasible, I am just wondering if anyone can show... (0 Replies)
Discussion started by: mpang_
0 Replies

2. Shell Programming and Scripting

automate sftp using unix script

Hi All, I need to write a UNIX script that automates the sftp process. I should be able to do a sftp to a secure box and get a file from there. I am having a problem doing this because no matter what I do, when I run my script, I get a prompt at command line asking for a password. How could I... (34 Replies)
Discussion started by: priyamurthy2005
34 Replies

3. AIX

Automate SFTP UNIX to Windows

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

4. Shell Programming and Scripting

How to automate sftp in a script to 'get' files.

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

5. Shell Programming and Scripting

How to automate sftp without using expect script?

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

6. UNIX for Dummies Questions & Answers

automate sftp in sun solaris.

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

Using expect to automate sftp

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. UNIX for Dummies Questions & Answers

Automate sftp process using script

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

9. Shell Programming and Scripting

Sftp automate

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

10. Shell Programming and Scripting

Need to automate sftp and always get the latest file

hi guys the script is working but i need to change the file that i want to get to the latest.. i will use this as cron so i can get the latest sftp file evryday. pls help.. set user "big_user" set IP "XX.XX.XX" set dir "/export/home/oracle/REF/INPUT" spawn sftp $user@$IP expect sftp> ... (7 Replies)
Discussion started by: JONATHAN0919
7 Replies
Authen::Krb5::Simple(3pm)				User Contributed Perl Documentation				 Authen::Krb5::Simple(3pm)

NAME
Authen::Krb5::Simple - Basic user authentication using Kerberos 5 SYNOPSIS
use Authen::Krb5::Simple; # Create a new Authen::Krb5::Simple object using # the system default realm. # my $krb = Authen::Krb5::Simple->new(); # Authenticate a user. # my $authen = $krb->authenticate($user, $password); unless($authen) { my $errmsg = $krb->errstr(); die "User: $user authentication failed: $errmsg "; } # Get the current default realm. # my $realm = $krb->realm(); # Set the current realm # $krb->realm('MY.NEW.REALM'); # Create a new object pointing to another realm. # my $alt_krb = Authen::Krb5::Simple->new(realm => 'OTHER.REALM'); ... DESCRIPTION
The "Authen::Krb5::Simple" module provides a means to authenticate a user/password using Kerberos 5 protocol. The module's authenticate function takes a username (or user@kerberos_realm) and a password, and authenticates that user using the local Kerberos 5 installation. It was initially created to allow perl scripts to perform authentication against a Microsoft Active Directory (AD) server configured to accept Kerberos client requests. It is important to note: This module only performs simple authentication. It does not get, grant, use, or retain any kerberos tickets. It will check user credentials against the Kerberos server (as configured on the local system) each time the authenticate method is called. CONSTRUCTOR
new The new method creates the Authen::Krb5::Simple object. It can take an optional argument hash. At present the only recognized argument is "realm". If no realm is specified, the default realm for the local host will be assumed. Once set, the specified realm will be used for all subsequent authentication calls. The realm can be changed using the realm function (see below). Examples: Using the default realm: my $krb = Authen::Krb5::Simple->new(); specifying a realm: my $krb = Authen::Krb5::Simple->new(realm => 'another.realm.net'); METHODS
authenticate($user[@realm], $password) the authenticate method takes the user (or user@realm) and a password, and uses kerberos 5 (the local systems installation) to authenticate the user. if the user/password is good, authenticate will return a true value. Otherwise, a false value is returned and the error code is stored in the object. if($krb->authenticate($user, $pw)) { print "$user authentication successful "; } else { print "$user authentication failed: ", $krb->errstr(), " "; } realm( ) realm(NEW.REALM) The realm method is used to set or get the current default realm. If an argument is passed to this method, the default realm is set to that value. If no argument is supplied, the current realm is returned. errstr The errstr method will return the error message from the most recent authentication call. errcode The errstr method will return the krb5 error code from the most recent authentication call. This value will not be very useful. Use the errstr method to get a meaningful error message. BUGS
This version of Authen::Krb5::Simple does not support null or empty passwords. If you pass an undefined value or empty string ('') as a password, authenticate return false and set the error to indicate that null or empty passwords are not supported. AUTHOR
Damien S. Stuart, <dstuart@dstuart.org> SEE ALSO
perl, Kerberos5 documentation. perl v5.14.2 2012-01-08 Authen::Krb5::Simple(3pm)
All times are GMT -4. The time now is 01:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy