pureetofu All American 2748 Posts user info edit post |
Alright Linux gurus, I've spent the past hour attempting to understand what's going on here and just need help.
scp -rB LOCAL_DIRECTORY REMOTE_USERNAME@REMOTE_SERVER_NAME:~
Results in the following error:
Permission denied (publickey,gssapi-with-mic,password). lost connection
Ideas? Google searching just says too bad pretty much.5/22/2009 9:52:14 AM |
pureetofu All American 2748 Posts user info edit post |
Fuck, nevermind, meant to use C instead of B
#Delete thread if you want 5/22/2009 9:54:09 AM |
pureetofu All American 2748 Posts user info edit post |
Due to a wonderfully crappy internet connection at the office (AT&T can blow me) I've had to restart the copy twice now.
Any ideas on how to make my session stay logged on the machine to do the copy? Or maybe restart without overwriting files? 5/22/2009 1:02:09 PM |
moron All American 34142 Posts user info edit post |
http://yyab.wordpress.com/2006/12/18/resume-a-large-scp-transfer/ 5/22/2009 1:30:15 PM |
mellocj All American 1872 Posts user info edit post |
http://www.google.com/search?q=how+to+use+screen 5/22/2009 2:56:35 PM |
evan All American 27701 Posts user info edit post |
^winner 5/22/2009 2:57:50 PM |
moron All American 34142 Posts user info edit post |
just put an ampersand after the command... like
scp -rB LOCAL_DIRECTORY REMOTE_USERNAME@REMOTE_SERVER_NAME:~ & 5/22/2009 3:21:00 PM |
mellocj All American 1872 Posts user info edit post |
^ that makes the process run in the background but it doesn't detach it from your login. fail. 5/22/2009 8:46:18 PM |
Tiberius Suspended 7607 Posts user info edit post |
indeed, what you're thinking of is probably nohup
but I'm not sure making it persistent will help if the connection between the two machines involved in the copy is being interrupted
if that's the case you probably want to use sftp or rsync. rsync can take quite a while to actually begin transferring data if the files in question are large (tens of GB), so depending on how frequently the connection is interrupted sftp may be the better choice.
[Edited on May 22, 2009 at 11:42 PM. Reason : .] 5/22/2009 11:37:45 PM |
philihp All American 8349 Posts user info edit post |
scp should be returning an errorcode if it fails. put it in a loop; profit?
or use tftp. definitely. live on the edge, that's how i roll. 5/23/2009 12:37:53 AM |
ncsuapex SpaceForRent 37776 Posts user info edit post |
rsync FTW 5/23/2009 12:53:04 AM |