Score:1

How to fix ssh: connect to host xxx.xxx.xx.x port 22: Operation timed out

de flag

I am new to running ubuntu so not sure what I am missing here

on My Old macbook pro (ubuntu server running): -I installed ubuntu multipass -created an ubuntu instance -with multipass list command I can see it running

on my new Macbook Pro: -I created the ssh key, copied the public

on My Old macbook pro (ubuntu server running):

  • I appended the ssh using nano in the authorized_keys and sure its saved

on my new Macbook Pro:

it hangs for about a minute then spits out the following How to fix ssh: connect to host xxx.xxx.xx.x port 22: Operation timed out

I tried running sudo apt update sudo apt install ssh sudo ufw allow 22

and completely turned of the firewall on the old Macbook pro but nothing worked

any ideas why I cant seem to be able to ssh into it remotely? I also made sure its the only server running. But nothing seems to work

I can run multipass shell of course. since I added the keys.

THanks in advance

user535733 avatar
cn flag
You say you're using the correct IP address, but that's a classic error message that occurs when folks are not using the correct IP address. Ensure the client and server are on the same subnet. Test the connection using ping.
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.