ssh_sftpd(3erl) Erlang Module Definition ssh_sftpd(3erl)NAME
ssh_sftpd - Specifies a channel process to handle a sftp subsystem.
DESCRIPTION
Specifies a channel process to handle a sftp subsystem.
COMMON DATA TYPES
subsystem_spec() = {subsystem_name(), {channel_callback(), channel_init_args()}}
subsystem_name() = "sftp"
channel_callback() = atom() - Name of the erlang module implementing the subsystem using the ssh_channel behavior see ssh_channel(3erl)
channel_init_args() = list() - The one given as argument to function subsystem_spec/1.
EXPORTS
subsystem_spec(Options) -> subsystem_spec()
Types Options = [{Option, Value}]
Should be used together with ssh:daemon/[1,2,3]
Options are:
{cwd, String} :
Sets the initial current working directory for the server.
{file_handler, CallbackModule} :
Determines which module to call for communicating with the file server. Default value is ssh_sftpd_file that uses the file and
filelib API:s to access the standard OTP file server. This option may be used to plug in the use of other file servers.
{max_files, Integer} :
The default value is 0 , which means that there is no upper limit. If supplied, the number of filenames returned to the sftp
client per READDIR request, is limited to at most the given value.
{root, String} :
Sets the sftp root directory. The user will then not be able to see any files above this root. If for instance the root is set
to /tmp the user will see this directory as / and if the user does cd /etc the user will end up in /tmp/etc .
Ericsson AB ssh 2.0.4 ssh_sftpd(3erl)
Check Out this Related Man Page
sftp-server(1M) System Administration Commands sftp-server(1M)NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
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. There are no options or config settings.
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.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
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)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)
I just received a phone call from a customer who accidentally typed this in:
# mv * /tmp
They did this from the root directory. I think they thought they were in a different folder. So now no commands work. I even adjusted the path to have the /tmp in front of everything. Even when I went... (8 Replies)
Hi all, newbie to forums here.
There's this server with HP-UX, / partition at 100%, won't allow logins, so i've tryed to mount every possible directory through NFS, ftp, sftp, ssh, cu, rcp (to replace files i know are big with an empty one) and nothing.
Any other suggestion on how to access... (1 Reply)
Hi, I have a sftp account to another server, from which I need to find out all the files match "*.abc.*.xml" pattern in a certain directory. I have a batchfile as follows
cd /tmp
ls -l *.abc.*.xml
quit
then I run
output=`/usr/local/bin/sftp -B $batchfile $USER@$HOST`
the result looks... (2 Replies)
Hi all,
I have command to connect gateway server
iam in home directory/> ssh root@mrp-gateway
root@mrp-gateway:/root> sftp -v msgGoogle@126.132.45.123
sftp/>dir
upload --> folder
sftp/upload/ls
-------------
8990.txt
kittu.txt
8989.txt
i have an requirement to print files list which... (2 Replies)
Hi all,
I have an aix 5.3 running open ssh 1.75 i think
only root can sftp into the server. I appears to authenticate OK via the verbose output. Here it is:
################################################
################################################
... (3 Replies)
The OS is CenOS.
The sshds is started, but ssh/sftp/psftp are not working with "time out" errors.
# service sshd status
openssh-daemon (pid 2894) is running...
# tail /var/log/secure
Feb 16 10:56:47 cenos userhelper: pam_timestamp(system-config-securitylevel:session): updated... (3 Replies)
Hi all,
I need to add a process to poll for the files using sftp during the specific time period .How to i add this to the exsiting script.
my requirement is to add a process to the below script which has to poll every 5 min from 5 A.M to 12 P.M. How do i do this?
... (1 Reply)
Is there any free version of Fsecure ssh client sftp we have. or need to buy license for this. Can you please let me know on this.thanks Regards. (6 Replies)
Hello Admins,
I am trying to copy some files/packages from my windows host to AIX server. I am a normal user not root.
I am getting an error as below:
cannot initialize sftp protocol.....
I have enabled the ftp service.
Could you help me out.. (7 Replies)
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)
I have a website that I use sftp to connect to the root account. I am able to connect to it with
sftp root@domainHowever, when I create a new user, and try to login with this account, it says permission is denied.
I have already checked with my provider, and tech support said they can login... (9 Replies)
Hello,
I have a task to create 3 users that must connect only via sftp on a machine, and must have only read access to a certain directory (thay shouldn;t be able to cd anywhere else)
The problem is that the directory where these users must have access to, it's already created/owned by another... (0 Replies)
I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So... (5 Replies)