I thought that in-line commands were not allowed for sftp and that one always has to put the commands in a file and refer to them with the -b file. Of course, this might vary depending on the OS. I would expect something more like:-
Have I missed something?
I need your help please.
In order to run a script after a ftp connection, ive got initially this problem:
from unix pc machine to a Unix server i could ftp succesfully but in reverse (i mean from unix to pc machine i cant ftp. The error message is this
ftp 192.168.29.90
ftp: connect: Connection... (1 Reply)
Hi there,
Anything will help.
I have running server on computer and want to connect from some clients.
Server:
memset(&hints, 0, sizeof(hints));
hints.ai_family = domain;
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo("localhost", "8300", &hints, &res0);
if (error)
{
... (1 Reply)
Hello Friends,
When i trying to transfer a huge amount of files via FTP to a HP-Unx server, I am getting an error "Connection Refused"...!
How can i avoid this error.
Regards,
Prakash K:b: (4 Replies)
OS : Solaris sparc
In c program After socket created when I do Connect() it results "Connection refused", but the system is online and I am able to do telnet, ping everything, but it says connection refused.
What would need to correct ? (6 Replies)
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)
Hi- While trying ftp from AIX to Windows im getting below error. Can anyone share ur views on this topic.
root@AB101# ftp -n 10.192.168.68
ftp: connect: A remote host refused an attempted connect operation.
ftp>
Thanks. (3 Replies)
hi,
I am using solaris 11 , facing problem in ftp while using ftp to connect it from other os. SCP and ssh are working fine. sftp also working from other solaris machine but i want to ftp from windows os which show me the below message.
ftp connect connection refused
I use below command... (3 Replies)
I have two computers running Debian 6.0 and one running Solaris 2.6 on a private network. The Debian computers can ftp to the Solaris computer but if a Debian computer is the destination the ftp connection is refused. I assume this is some security feature of Debian. What can I do to allow... (2 Replies)
HI ,
I'm facing the FTP connection refused from text editor while accessing AIX server .It showing the messege "can't create ftp connection connectin refused".Though it is accessible from putty .
i'm using aix version 6 .
Can any one let me know the seetings needs to be made so that i... (2 Replies)
Hi All,
I am using the below script to get some files from the remote location
HOST='Test03'
USER='root'
PASSWD='*****'
FILE='/home/user/d.txt'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
get $FILE
quit
END_SCRIPT
exit 0
But ist is giving me the... (3 Replies)
Discussion started by: sharsour
3 Replies
LEARN ABOUT OPENSOLARIS
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server [-f log_facility] [-l log_level]
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. Command-line flags to sftp-server should be specified in the Subsys-
tem declaration. See sshd_config(4) for more information.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
OPTIONS
Valid options are listed below. As stated above, these are to be specified in the Subsystem declation of sshd_config.
-f log_facility
Specifies the facility code that is used when logging messages from sftp-server. The possible values are: DAEMON, USER, AUTH, LOCAL0,
LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The default is AUTH.
-l log_level
Specifies which messages will be logged by sftp-server. The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1,
DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that sftp-server performs on behalf of the client. DEBUG and DEBUG1 are equiva-
lent. DEBUG2 and DEBUG3 each specify higher levels of debugging output. The default is ERROR.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/ssh/sftp-server Server-side binary.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)SunOS 5.11 24 Oct 2007 sftp-server(1M)