加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – wget和htaccess:仅限用户名

发布时间:2020-12-13 16:58:04 所属栏目:Linux 来源:网络整理
导读:我用Google搜索了如何使用ubuntu中的终端下载图像.我找到了我需要的东西,但在服务器上,用.htaccess保护,没有密码.同 wget admin @ http://server.com/filename.jpg 它返回:没有到主机的路由.当我设置密码并输入时 wget admin:password @ http://server.c
我用Google搜索了如何使用ubuntu中的终端下载图像.我找到了我需要的东西,但在服务器上,用.htaccess保护,没有密码.同

wget admin @ http://server.com/filename.jpg

它返回:没有到主机的路由.当我设置密码并输入时

wget admin:password @ http://server.com/filename.jpg

一切安好.但是我不允许在服务器上使用密码.如何修复它,寻找路线?

解决方法

更容易:
wget --user="username" --password="password" http://xxxx.yy/filename.xxx

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读