06-11-2013
Hey,
What you see when you telnet remote_server_ip 22 ?
And is there any deny rules for 22 in iptables? check iptables -L
Cheers..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hey when trying to connect to a server using a key I get
sftp -o 'Port=22' -o'IdentityFile=/home/datatel/.ssh/id_dsa_xei' becker_xei@host Connecting to host...
ANGEL SFTP ServerConnection closed by host
Connection closed
Any ideas? (1 Reply)
Discussion started by: ed.browne
1 Replies
2. Shell Programming and Scripting
Dear All,
I'm trying to configure a passwordless connection between two servers of HP-UX. i have srearched the configuration in google so many times and as per the guidence i have done all the steps, but still its not working and every time it is asking for password while trying to scp some file... (2 Replies)
Discussion started by: panknil
2 Replies
3. Shell Programming and Scripting
Dear All,
I'm trying to configure the passwordless connection between two servers say Server A and Server B.
My requirement is a passwordless connection from Server A to Server B.
I have done the configuration in both the servers. In Server A its successfull but from Server B its everytime... (7 Replies)
Discussion started by: panknil
7 Replies
4. Solaris
Hi everyone,
I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I when I trying to SFTP a file to a server I am getting this below error:
Connecting to 3.12.911.100...
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
Host key verification failed.
Connection closed
Can you please help me in debugging this error.
... (3 Replies)
Discussion started by: krishna87
3 Replies
6. Shell Programming and Scripting
Hi All,
in our system , the sftp server is continuously up. but suddenly it is brought down. how can i find out the reason behind of these , is their any log files or how can i check the connectvity with sftp.
please help me to solve this issue (1 Reply)
Discussion started by: aish11
1 Replies
7. Shell Programming and Scripting
To set up a sftp connection between Server A, Server B and a website.com
A batch script will start from Server A and Server B and Connect to the Website server
How to setup sftp connection between server's. (1 Reply)
Discussion started by: aix_admin_007
1 Replies
8. IP Networking
Hi All
This is regarding an SFTP Password less connection.
I am logged into my local Server1 using username1.
The remote server i have to connect is "Remoteserver1" with the "useriD" provided. I have already exchanged the public key and they are added to the authorized keys in the remote... (2 Replies)
Discussion started by: sparks
2 Replies
9. Red Hat
Dear All ,
I have a openssh 4.3p2 , but i need to configure sftp for a user which is present in the server.
This user has to see only the specific directory not all.
I tried to do the changes in sshd_config for openssh 4.9p1 , but for openssh 4.3p2 how to do it.
Any one pl help.
... (1 Reply)
Discussion started by: jegaraman
1 Replies
10. Shell Programming and Scripting
I am running this script to copy pattern files in local but it is asking for password even passing the hardcode value
Script:-
PASSWORD="xyz"
sftp -oport=1002 user@host:/dir/archive/file*.txt /di/data/
<< EOF
$PASSWORD
quit
EOF
Got error :-
-bash-4.1$ sh sftp_with_password.sh... (5 Replies)
Discussion started by: himanshupant
5 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)