我使用基于linux的操作系统。比方说,我有一个包含10个文件的服务器,比如tmp1 ....tmp10,我想把三个特定的文件复制到我的本地机器上,比如说,tmp3,tmp7和tmp10。在这种情况下,我必须使用"scp-command“三次,其中我还必须输入三次密码。问题是,我不得不经常做这个过程,所以我“写”了下面的脚本。/usr/bin/expect -f # to read the expect-programm
我目前正试图通过scp将一些文件从服务器(Ubuntu20.04)复制到域计算机(Windows 10)。我使用Putty通过SSH连接到Ubuntu服务器(通过IP和特定端口进行连接),并使用用户和密码身份验证。我像这样运行SCP命令:
scp -P (the port used for the SSH connection to the server) /folder/subfolder/file domain_account_name@domain