ssh_sftp 模块 ssh_sftp 模块摘要 SFTP客户端 描述 该模块实现SSHFTP(SFTP)客户端。SFTP是一种可用于SSH的安全,加密文件传输服务。
ssh2_sftp (PECLssh2>=0.9.0) ssh2_sftp—InitializeSFTPsubsystem Description resourcessh2_sftp(resource$
ssh2_sftp_chmod (PECLssh2>=0.12) ssh2_sftp_chmod—Changesfilemode Description boolssh2_sftp_chmod(resource
ssh2_sftp_lstat (PECLssh2>=0.9.0) ssh2_sftp_lstat—Statasymboliclink Description arrayssh2_sftp_lstat(
ssh2_sftp_mkdir (PECLssh2>=0.9.0) ssh2_sftp_mkdir—Createadirectory Description boolssh2_sftp_mkdir(resource
ssh2_sftp_readlink (PECLssh2>=0.9.0) ssh2_sftp_readlink—Returnthetargetofasymboliclink Description stringssh2
ssh2_sftp_realpath (PECLssh2>=0.9.0) ssh2_sftp_realpath—Resolvetherealpathofaprovidedpathstring Description
ssh2_sftp_rename (PECLssh2>=0.9.0) ssh2_sftp_rename—Renamearemotefile Description boolssh2_sftp_rename
ssh2_sftp_rmdir (PECLssh2>=0.9.0) ssh2_sftp_rmdir—Removeadirectory Description boolssh2_sftp_rmdir(resource
ssh2_sftp_stat (PECLssh2>=0.9.0) ssh2_sftp_stat—Statafileonaremotefilesystem Description arrayssh2_sftp_stat
ssh2_sftp_symlink (PECLssh2>=0.9.0) ssh2_sftp_symlink—Createasymlink Description boolssh2_sftp_symlink
ssh2_sftp_unlink (PECLssh2>=0.9.0) ssh2_sftp_unlink—Deleteafile Description boolssh2_sftp_unlink(resource
ct_ssh 模块 ct_ssh 模块摘要 SSH/SFTP客户端模块。 描述 SSH/SFTP客户端模块。 本模块使用应用程序。SSH,它提供有关例如函数、类型和选项的详细信息。
ssh_sftpd 模块 ssh_sftpd 模块摘要 指定处理SFTP子系统的通道进程。 描述 指定处理SFTP子系统的通道进程。
{ok,1}... 2.5SFTP服务器 启动Erlangssh带有SFTP子系统的守护进程: 1>ssh:start().ok2>ssh:daemon(8989,[{system_dir,"/tmp/
注意:ftp_ssl_connect()不适用于sFTP。要在PHP中使用sFTP,请参阅ssh2_sftp()。 参数 host FTP服务器地址。
它规定如下: 编写自定义SSH客户端和服务器应用程序的API函数 在SSH上可用的Erlangshell SFTP客户端(ssh_sftp)和服务器(ssh_sftpd) 1.2先决条件 假定读者熟悉Erlang
> SeeAlso ssh2_scp_recv()-RequestafileviaSCP copy()-Copiesfile ←ssh2_scp_recv ssh2_sftp_chmod→ ©1997–
Executeacommandonaremoteserver ssh2_tunnel()-Openatunnelthrougharemoteserver ssh2_fetch_stream()-Fetchanextendeddatastream ←ssh2_sftp
这方面的一个例子是ssh_sftp:open_tar/3此函数使用SFTP通道在远程计算机上打开tar文件。