Transferring Files Using SSH

Common use cases can include

  • Downloading backups of stake/payment keys

  • Uploading a new operational certificate to the block producer from an offline node

To Download Files From a Node to Your Local PC

ssh <USERNAME>@<IP ADDRESS> -p <SSH-PORT>
rsync -avzhe “ssh -p <SSH-PORT> <USERNAME>@<IP ADDRESS>:<PATH TO NODE DESTINATION> <PATH TO LOCAL PC DESTINATION>

Example:

ssh myusername@6.1.2.3 -p 12345

rsync -avzhe "ssh -p 12345" myusername@6.1.2.3:/home/myusername/cardano-my-node/stake.vkey ./stake.vkey

To Upload Files From Your Local PC to a Node

ssh <USERNAME>@<IP ADDRESS> -p <SSH-PORT>
rsync -avzhe “ssh -p <SSH-PORT> <PATH TO LOCAL PC DESTINATION> <USERNAME>@<IP ADDRESS>:<PATH TO NODE DESTINATION>

Example:

ssh myusername@6.1.2.3 -p 12345

rsync -avzhe "ssh -p 12345" ./node.cert myusername@6.1.2.3:/home/myusername/cardano-my-node/node.cert

Last updated