I need ssh in windows 7 to run MobaSSH as its SSH daemon, and the username in the windows window contains space. I can enter a Windows 7 window on an OSX terminal, for example:
ssh "Some User"@WindowsHost
So, I thought I could use the scp command on OSX to transfer files between computers, but I always get the error "invalid username" when I do something like this:
scp myfile "Some User"@WindowsHost:~/myfile
I looked through it and found https://stackoverflow.com/a/3776266/2126 , but basically this is the space in the file path.
I found an error posted about this problem in a specific version of scp , but I'm not sure how to fix scp on OSX. The patch is offered as a .c file.
My last resort is to create a new username in a Windows 7 window and transfer all my profile settings to this new user. It seems like this is a real problem when I can login via ssh but not scp.
Any tips?
source
share