Description
Use the following instruction to recover your tunneling machine or migrate to a new one
Assumptions
- Your old tunneling machine was configured and working
- You know the hostname of your old tunneling machine
- You have a copy of the following files from your old tunneling machine
- ~/.ssh/id_rsa
- ~/.ssh/id_rsa.pub
Solution
- Create a new tunneling Machine
- See KB#13051 “Cloudvue SSH Tunneling” for instructions and recommendations
- Copy both of these files from the old tunneling machine onto the new one
- ~/.ssh/id_rsa
- ~/.ssh/id_rsa.pub
- Change the hostname of the new tunneling server to match the hostname of the old tunneling server
Example
Display hostname
$ hostnamectl
Static hostname: Your-Virtual-Machine
Icon name: computer-vm
Chassis: vm Machine ID: 54acc6559a574f06b8b66a7f7ffe90a4
Boot ID: 71d58b5f2ebc40969b795e25392425c3
Virtualization: microsoft Operating System:
Ubuntu 22.04.2 LTS
Kernel: Linux 5.19.0-35-generic
Architecture: x86-64
Hardware Vendor: Microsoft Corporation
Hardware Model: Virtual Machine
Change hostname
$ sudo hostnamectl set-hostname
Pro Tip: Quick recovery hinges on you having a backup of both, id_rsa and id_rsa.pub , and a record of the hostname of your tunneling machine