从 FTP 切换到 SFTP。尝试查找与 ftp -vn 等效的 SFTP 选项
我们正在从使用 ftp 切换到 sftp。
我试图使用 sftp 找到类似的选项,就像我们使用 ftp 一样,尽管它们不直接排列。
所以旧的 ftp 命令使用 -vn ,所以:
ftp -vn ...
-v 代表 verbose -n 代表“限制 ftp 在初始连接时尝试自动登录。
不幸的是 sftp 的选项不会直接映射到 ftp,所以我试图找到等效项。
因此对于 sftp,我发现了以下内容: -N 禁用安静模式(看起来类似于 -v;用于 FTP 的详细模式)
我真的找不到 ftp 选项 -n 的等效选项。如果有人有任何建议。我会很感激。
另外,有人知道与 sftp 一起使用的 ftp -v 更接近的等效项,如果 -N 选项不够接近,请告诉我。
We're switching from using ftp to sftp.
I'm trying to find similar options using sftp as we had using ftp although they don't line up directly.
So the old ftp command uses -vn , So:
ftp -vn ...
-v stands for verbose
-n stands for "Restrains ftp from attempting auto-login upon initial connection.
Unfortunately the options for sftp don't map directly to ftp so I'm trying to find the equivalent.
So for sftp I've found the following:
-N disables quiet mode (looks similar to -v; verbose used for FTP)
I can't really find an equivalent for the ftp option -n. If anyone has any suggestions. I'd appreciate it.
Also someone knows of a closer equivalent to ftp -v for use with sftp, if the -N option is not close enough please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
sftp
,每次尝试登录时都会要求您输入密码。当然,如果您设置了 ssh 密钥,则禁用这些密钥是没有意义的,因为这可能会完全阻止您登录到计算机。
对于详细信息,您可以使用
-v
几次来获得更详细的调试输出。最后,您不能指望两个不同的程序具有相同的选项。
With
sftp
you will be asked for password every time you try to do login.Of course if you have set ssh key make no sense to disable the keys as this may stop you from login in to the machine at all.
For verbose you can use
-v
few times to get more detailed debug outputAt the end you can't expect two different programs to have the same options.