scp

How can I scp a file with a colon in the file name?

醉酒当歌 提交于 2019-11-30 07:54:28
I'm trying to copy a file using scp in bash with a colon ( : ) character in the source filename. The obfuscated version of my command I'm using is: scp file\:\ name.mp4 user@host:"/path/to/dest" I get this error: ssh: Could not resolve hostname Portal 2: Name or service not known I know I could just rename the file and remove the : , but I'd like to know if it's possible to escape the colon. Not quite a bash escaping problem, it's scp treating x: as a [user@]host prefix, try: scp ./file:\ name.mp4 user@host:"/path/to/dest" Using relative (e.g. ./ ) or fully qualified paths ( /path/to/source )

WinSCP connect to Amazon AMI EC2 Instance changing user after login to “root”

拜拜、爱过 提交于 2019-11-30 07:12:14
I followed instructions here carefully however I haven't get this working right. Here is what I did: Run WinSCP enter Hostname (Elastic IP of my Instance) enter username "ec2-user" enter public key file chose SCP for the protocol Under SCP/Shell settings I chose "sudo su -" Hit Login WinSCP asks me for passphrase key, Hit OK Shows up this error Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended). NOTE: This works on Putty Jay Sidri WinSCP does not support commands that require terminal emulation or user input. See: http://winscp.net

Problems running python script by windows task scheduler that does pscp

╄→尐↘猪︶ㄣ 提交于 2019-11-30 06:59:34
问题 Not sure if anyone has run into this, but I'll take suggestions for troubleshooting and/or alternative methods. I have a Windows 2008 server on which I am running several scheduled tasks. One of those tasks is a python script that uses pscp to log into a linux box, checks for new files and if there is anything new, copies them down to a local directory on the C: drive. I've put some logging into the script at key points as well and I'm using logging.basicConfig(level=DEBUG) . I built the

Using Mercurial, is there an easy way to diff my working copy with the tip file in the default remote repository

有些话、适合烂在心里 提交于 2019-11-30 06:51:35
When using mercurial, I'd like to be able to diff the working copy of a file with the tip file in my default remote repository. Is there an easy way to do this? I know I can do an "hg incoming -p" to see the patch sets of changes coming in, but it'd be nice to just directly see the actual changes for a particular file that I'd get if I do a pull of the latest stuff (or what I might be about put push out). The easiest thing I can think of right now is to create a little script that takes a look at the default location in .hg/hgrc and downloads the file using curl (if it's over http, otherwise

SCP for C# [closed]

拟墨画扇 提交于 2019-11-30 06:37:45
Is there a library that provides the ability to do SCP transfers in C#? Jon Skeet Have you tried SharpSSH ? (last update was 2013) Farshid Use WinSCP .NET Assembly . It is really straight forward. 来源: https://stackoverflow.com/questions/651399/scp-for-c-sharp

frida-ios-dump踩坑备忘

陌路散爱 提交于 2019-11-30 03:34:02
1.Waiting for USB device... 确保mac和iphone上都是新版的frida,以及最新的 frida-ios-dump 如果依然报此错,可能是在python3环境运行了python2的frida-ios-dump,那么请看下一条 2.python版本问题 默认python3.x环境的同学,不用纠结如何切换本机python版本,直接下载 3.x branch 就好了 3.No such file or directory IOS10.x通过yalu102越狱后,自带了ssh,但是scp是不可用的,需要 修复scp 修复后ssh连接手机,试试scp指令,确保手机端scp可用 4.Authentication failed dump.py里的ssh登录User和Password配错了 5.unexpected error while probing dyld of target process 执行./dump.py时手机端app没有打开 来源: https://blog.csdn.net/yihen18/article/details/101035266

linux服务器之间传递文件-scp命令

牧云@^-^@ 提交于 2019-11-30 03:33:00
linux服务器之间传递文件: 从远程机器复制文件到本地服务器的目录下: scp -r root@远程机器的地址:要复制的文件目录 本地的目录 例:从147往221上复制147上的tomcat目录:scp -r root@192.168.45.147:/home/tomcat /home 不直接通过xftp传递的原因是:scp命令速度超快 来源: https://www.cnblogs.com/Suntree/p/11552528.html

sshpass密码

倖福魔咒の 提交于 2019-11-30 01:15:17
使用 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 Macw/macport port install sshpass Macw/BREW brew instal 来源: https://www.cnblogs.com/ExMan/p/11543377.html

How to transfer a file between two remote servers using scp from a third, local machine?

丶灬走出姿态 提交于 2019-11-29 23:35:29
I'm trying to copy a file from one remote server to another remote server from my local machine. Here's what I'm trying to do localA $ scp userB@remoteB:/path/to/file userC@remoteC:/path The problem is that I need to pass two passwords for both userB and userC on the remote machines. According to Garron the above should work, but I got permission denied. Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive). lost connection Any suggestions? This questions already exists on Superuser: https://superuser.com/questions/686394/scp-between-two-remote-hosts-from-my-third-pc