Unable to copy disk image over SSH

I have done this in the past a handful of times with no issues but now I cannot seem to be able to:

I follow the steps in this guide: https://www.linode.com/docs/migrate-to- … e-over-ssh">https://www.linode.com/docs/migrate-to-linode/disk-images/copying-a-disk-image-over-ssh

I sat the linode on rescue mode.

I fire up my lish via terminal.

I set the root password.

I open a new terminal (local) and entered the command "root@XX.XX.XX.XX "dd if=/dev/sda" | "dd of=/Volumes/somedrive/linode.img"

I enter the password but then nothing happens….and by that I mean, the shell just returns right away as if a had control-C….and that is all.

what am I doing wrong? What changed?

4 Replies

Did you start the SSH service after setting your root password?

Probably because your ssh client is now complaining that the fingerprints don't match.

Try just: ssh root@ipaddress when booted into rescue mode (after setting root pass and starting ssh). You may need to remove a line from your local known_hosts file.

-Chris

It seems to me that if you've configured your linode as described here…

https://www.linode.com/docs/security/se … our-server">https://www.linode.com/docs/security/securing-your-server

i.e. for passwordless access and disabled root login, that you would need to temporarily disable those security protection settings prior to being able to perform the ssh-based dd command, and then re-enable it afterwards .

Or, does the linode's rescue mode act differently? does rescue mode allow root@linode-IP ssh despite the normal protection?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct