我有一个安装了plesk控制面板的CentOS服务器,我使用带有根密码的SFTP登录来管理文件。但是,突然之间,我无法使用SFTP访问服务器,并且在使用CuteFTP时会出现此错误。
ERROR:> [4/18/2012 5:18:31 PM] Connection to the server was lost, and the operation could not be performed.
ERROR:> [4/18/2012 5:18:31 PM] Can't connect to localkicks.com:22. SFTP21 error =
注:我不确定这是属于ServerFault还是StackOverflow
我目前正在从事一个只有SFTP的bzr存储库的项目。使用我的Linux机器都可以正常工作,但是当使用Windows与Cygwin一起使用时,我会遇到以下问题:
$ bzr checkout sftp://user@hostname/var/bzr/project
bzr: ERROR: Unsupported protocol for url "sftp://user@hostname/var/bzr/project": Unable to import paramiko (required for sf
我希望将SFTP用户限制在他们的主文件夹中,这样他们就不会看到其他人的文件夹/主目录。不幸的是,所有SFTP用户目前都可以看到其他用户的文件夹。所有的帖子和例子都指出了ChrootDirectory,但由于某种原因,我无法让它发挥作用。
$ sudo nano /etc/ssh/sshd_config
Subsystem sftp internal-sftp
Match Group sftp
ChrootDirectory %h # The %h causes "Broken pipe" error while trying to login
C
我有个用户被关进监狱。
sshd_config:
Subsystem sftp internal-sftp
Match user matt
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
护照:
matt:x:1001:5006:Matt Ryan,,,:/home/matt:/home/matt/bin/bash
这对于sftp来说是完美的。用户被限制在他的主文件夹,和任何安装在那里。
但是,我也想让这个使用shell访问。当他们试图登录时会发生这样的情况:
$ ssh matt@server
我在我的Linux机器上使用perl,v5.10.1。我试着通过Net::SFTP提示符安装cpan模块,但是在过去的两天里它给出了下面的错误。
警告:
Warning: no success downloading
'/root/.cpan/sources/authors/01mailrc.txt.gz.tmp19821'. Giving up on
it. at /usr/share/perl5/CPAN/Index.pm line 225
错误:
Connecting to www.perl.org|207.171.7.51|:80... failed: Connecti
我有一些需要从机器B( linux )到机器C的sftp文件。我们需要在机器A( windows server 2003 )中启动任务,并在Windows Scheduler中对其进行调度。我该怎么做呢?
我会像这样互动地做:
ftp文件从机器A到机器B。
从telnet到机器B。
使用telnet,sftp从机器B到机器C,将文件从机器B放到机器C。
如何使用机器A中的脚本( windows )来完成此操作?我不能安装任何其他的软件来帮助。
在linux中,我们在ls命令中有很多用于列出文件的标志。我们不能在sftp命令中做同样的事情。例如,在linux中,我可以通过运行命令列出一个文件的完整时间:ls --full-time filename当我通过sftp连接到服务器时,我不能运行命令: ls -- full -time。
sftp中的ls帮助没有列出所有可用的标志。所以你能告诉我sftp中的ls标志是什么吗?
谢谢!
是否可以通过python运行以下步骤?
我的目标是通过python -登录到13.5.41.90 (LinuxMachineRedHat5.3)来实现sftp的自动化,并从这个Linux获得file.txt,请给我建议?
sftp 13.5.41.90
Password: password123
cd /var/tmp
get file.txt
sftp> quit
the full view from sftp command line
sftp 13.5.41.90
Connecting to 13.5.41.90...
Passw