Copying backups from server to server SSH

2 posts / 0 new
Last post
#1 Sat, 10/31/2015 - 13:24
simon1066

Copying backups from server to server SSH

Having played with Virtualmin for a few months, well more like learning as I've had my live sites up and running, it's time to move to a better host. I've followed the instructions and have got stuck on the transfer of backups from current server to new.

Based on this command scp -r /root/backups root@new_server.com:/root/ I used

scp -r /root/ttt.txt root@xx.xxx.xxx.xx:/root/ to test transfer a file (ttt.txt)

After the initial 'do you trust this server?' [yes/no] I get

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
lost connection

I think I can see why I get this as I have public key authentication set up on the new server. What should I do to get through this?

Sat, 10/31/2015 - 13:34
simon1066

Hi again,

I was a bit impetuous I'm afraid. Just realised that this is not a Virtualmin question but more of an SSH one. Google tells me that there's a way of including server security info in the parameters of the scp command.

I'm off to check that out.

Topic locked