使用sshpass


sshpass -p "password" scp -r user@example.com:/some/remote/path /some/local/path

或者,密码不会显示在bash历史记录中


sshpass -f "/path/to/passwordfile" scp -r user@example.com:/some/remote/path /some/local/path

以上复制从远程主机到本地的路径内容。

安装:

  • Ubuntu的/ Debian的
    • apt install sshpass
  • CentOS的/ Fedora的
    • yum install sshpass
  • mac w / macports
    • port install sshpass
  • mac w / brew
    • brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master‌​/Library/Formula/ssh‌​pass.rb
分类: 未分类

8 条评论

cbd online · 2020年7月18日 下午9:16

I am the manager of JustCBD brand (justcbdstore.com) and I am currently trying to develop my wholesale side of business. I really hope that someone at targetdomain give me some advice . I thought that the best way to do this would be to talk to vape stores and cbd stores. I was hoping if anybody at all could recommend a dependable web site where I can purchase CBD Shops Business Mailing List I am already taking a look at creativebeartech.com, theeliquidboutique.co.uk and wowitloveithaveit.com. Not exactly sure which one would be the very best selection and would appreciate any guidance on this. Or would it be simpler for me to scrape my own leads? Ideas?

Cosmo Optical · 2020年7月29日 上午6:32

Good post. I’m facing some of these issues as well..

South Building Inspections · 2020年7月30日 下午5:47

May I simply just say what a comfort to uncover an individual who truly understands what they are discussing on the web. You certainly realize how to bring an issue to light and make it important. More people really need to look at this and understand this side of your story. It’s surprising you aren’t more popular since you most certainly possess the gift.

Create Online Course · 2020年7月30日 下午11:19

Howdy! This blog post could not be written any better! Looking at this post reminds me of my previous roommate! He constantly kept preaching about this. I most certainly will forward this post to him. Pretty sure he will have a very good read. Thank you for sharing!

ad videos download · 2020年8月1日 下午10:04

Good information. Lucky me I discovered your site by accident (stumbleupon). I have saved as a favorite for later!

Plumber Online · 2020年8月1日 下午11:28

Good information. Lucky me I ran across your blog by accident (stumbleupon). I have bookmarked it for later!

Lawncare Salem · 2020年8月3日 上午9:49

Hello there, I do believe your blog could be having web browser compatibility problems. Whenever I take a look at your web site in Safari, it looks fine however, when opening in IE, it has some overlapping issues. I just wanted to provide you with a quick heads up! Apart from that, fantastic blog!

Almeta Burt · 2020年8月17日 下午2:15

Aw, this was an exceptionally nice post. Finding the time and actual effort to produce a great article… but what can I say… I put things off a whole lot and don’t manage to get nearly anything done.

发表评论