08-17-2010
hello raja,
the SFTP server is under control..
even i can do SFTP but giving the password when it prompts.
i need to bypass that prompt.
---------- Post updated at 01:02 PM ---------- Previous update was at 12:49 PM ----------
hello kevin,
i have issued ssh-keygen
Generating public/private rsa key pair.
Please be patient.... Key generation may take a few minutes
Enter file in which to save the key (/portal_home/pin/.ssh/id_rsa): nil
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in nil.
Your public key has been saved in nil.pub.
The key fingerprint is:
e0:ca:42:60:2a:09:52:f7:3
now can you please help me how to upload the key on remote machine?
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Hi All,
Greetings!
when a script file is passed to the SFTP command at the unix prompt, Is it possible to supress the keyboard input for user authentication. If yes, please let me know the way to do it.
Thanks for any/all help at the earliest.
Regards,
Dheeraj. (1 Reply)
Discussion started by: dheeruchakri
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to setup a sftp connection to the local host for testing purposes.
The machine is on a extranet behind a firewall which makes it difficult to test to other machines on the network as I do not manage to Firewall. I am just testing the concept for now to determine what needs to be... (2 Replies)
Discussion started by: hugow
2 Replies
3. OS X (Apple)
can anyone suggest somewhere i might learn how to set up sftp and ssh on os x tiger? I dont find any literature on it other then suggestions of thirdparty programs to do this for you.:confused: (3 Replies)
Discussion started by: RahJiggah
3 Replies
4. AIX
Hi,
While I am trying SFTP my machine to another unix machine ,
it was working fine till 10 min back.
But now i am getting the below error
"Request for subsystem 'sftp' failed on channel 0"
Could you please someone help me to solve or analyise the root cause...
Cheers:b:,
Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies
5. Ubuntu
Hi All,
I want to upload file through SFTP in non interactive mode
on remote server. please tell me what will have to do in oreder to do SFTP . (1 Reply)
Discussion started by: kulbhushan
1 Replies
6. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
7. Shell Programming and Scripting
Hi,
Can you please tell me what the below command does
cat <<EOF1 > $tmp1
binary
lcd $targetDir
cd ${remoteDir}
ls
quit
EOF1
cat $tmp1
set -x
sftp6 -P 2246 -B $tmp1 --password=file://<ctl>/.gspass | tee outputfile
Actually my requirement is if the sftp succeed, then only it... (3 Replies)
Discussion started by: help_scr_seeker
3 Replies
8. Red Hat
Hello,
I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration.
#pwd... (8 Replies)
Discussion started by: bobby320
8 Replies
9. Shell Programming and Scripting
I had the below sftp script working perfectly but the problem is I am not able to send the echo statements .
#!/bin/sh
echo "Starting to sftp..."
sftp admin@myip << END_SCRIPT
cd /remotepath/
lcd /localpath/
mget myfiles*.csv
bye
END_SCRIPT
echo "Sftp successfully."
echo
echo... (11 Replies)
Discussion started by: scriptscript
11 Replies
10. Shell Programming and Scripting
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
LEARN ABOUT DEBIAN
net::ssh2::sftp
Net::SSH2::SFTP(3pm) User Contributed Perl Documentation Net::SSH2::SFTP(3pm)
NAME
Net::SSH2::SFTP - SSH 2 Secure FTP object
DESCRIPTION
An SFTP object is created by the Net::SSH2 "sftp" method.
error
Returns the last SFTP error (one of the LIBSSH2_FX_* constants). Use this when Net::SSH2::error returns LIBSSH2_ERROR_SFTP_PROTOCOL. In
list context, returns (code, error name).
open ( file [, flags [, mode ]]] )
Open or create a file on the remote host. The flags are the standard O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_CREAT, O_TRUNC, and O_EXCL,
which may be combined as usual. Flags default to O_RDONLY and mode to 0666 (create only). Returns a Net::SSH2::File object on success.
opendir ( dir )
Open a directory on the remote host; returns a Net::SSH2::Dir object on success.
unlink ( file )
Delete the remote file.
rename ( old, new [, flags ] )
Rename old to new. Flags are taken from LIBSSH2_SFTP_RENAME_*, and may be combined; the default is to use all (overwrite, atomic, native).
mkdir ( path [, mode ] )
Create directory; mode defaults to 0777.
rmdir ( path )
Remove directory.
stat ( path [, follow ] )
Get file attributes for the given path. If follow is set (default), will follow symbolic links. On success, returns a hash containing the
following:
mode
size
uid
gid
atime
mtime
setstat ( path, key, value... )
Set file attributes for given path; keys are the same as those returned by stat; note that it's not necessary to pass them all.
symlink ( path, target [, type ] )
Create a symbolic link to a given target.
readlink ( path )
Return the target of the given link, undef on failure.
realpath ( path )
Resolve a filename's path; returns the resolved path, or undef on error.
SEE ALSO
Net::SSH2.
AUTHOR
David B. Robins, <dbrobins@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2005, 2006 by David B. Robins; all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2011-05-06 Net::SSH2::SFTP(3pm)