Score:1

How to connect from Ubuntu VM on Azure to another without uploading the private key

tw flag

My Topology

Two Ubuntu servers, the edge which is exposed to the internet, and the core which is only connected locally. Both are on the same subnet and the core only accepts SSH from the edge server. SSH Private keys are stored on my local computer I'm connecting from. I'm using a custom ssh port and MFA on both servers

What I want to achieve is to connect from my computer to the edge server via SSH and from there connect to the core server using the private SSH key stored locally.

I'm sure it is quite simple but I have no clue how to achieve that.

Score:1
br flag

What you are trying to do is "creating bastion host". And it can be done by using ssh-agent.

ViajanDee avatar
tw flag
I've been looking for something similar. Thank you for pointing it out. I also found this blog [link](https://www.strongdm.com/blog/ssh-bastion-with-key) which explains it very well.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.