Skip to main content

Connect to AWS (ubuntu) SSH from MacBook

 

Image by Krzysztof Niewolny from Pixabay


This is how to connect to AWS from a MacBook using SSH.

The command is as follows:
ssh -i ${pem file name} ${id}@${ip}

Here id is ubuntu.

Check the IP in the following way.

Log in to AWS. Then click Instance in the left menu (≡).



Click the instance ID.




Public IPv4 is an IP that can be accessed from the outside.

If your pem name is abc.pem and your ip is 1.2.3.4, you can log in to AWS with "ssh -i abc.pem ubuntu@1.2.3.4".

If you cannot log in with the message “WARNING: UNPROTECTED PRIVATE KEY FILE!” as shown below, you need to change the permissions of the pem file.


Changing file permissions on a MacBook is done with chmod.

chmod permission ${filename}

When the pem file name is abc.pem, change it to "chmod 600 abc.pem".

Then log in again with “ssh -i abc.pem ubuntu@1.2.3.4”.




Comments

Popular posts from this blog

Economy Insights for October 23, 2025

  Economy Insights for October 23, 2025 ⚠️ Disclaimer : This content is a personal opinion based on publicly available economic indicators. All investments should be made under your own judgment and responsibility. https://www.cnbc.com/2025/10/21/stock-market-today-live-updates.html Global Market Status: Mixed Sentiment Amid US-China Trade Talk Hopes On October 23, 2025, global financial markets exhibited a mixed sentiment , oscillating between anticipation for US-China trade negotiations and persistent uncertainties. While President Trump expressed optimism about securing a favorable trade deal with China, the market is maintaining a cautious stance, especially with the meeting with President Xi Jinping remaining unconfirmed. Investor anxiety is further compounded by the ongoing US government shutdown, which has led to delays in the release of key economic data. The following sections analyze the latest market trends and economic indicators, along with a future outlook. 1. Stock M...

subtle rise in inflation—will the anticipation for a rate cut still hold?

 Hello there, fellow investor. The U.S. economy is currently at a very interesting crossroads. Recent economic data reveals a subtle yet significant tug-of-war between inflation and economic growth, leaving many to wonder about the Federal Reserve's next move. Key Economic Indicators and the Current Situation According to the latest Personal Consumption Expenditures (PCE) price index , annual inflation rose to 2.9% in July, a slight increase from June's 2.8%. While this aligns with market forecasts, it remains stubbornly above the Fed's 2% target. Core PCE, which excludes volatile food and energy prices, has now been above this target for 53 consecutive months. This inflationary pressure is partly attributed to the tariff policies implemented by the Trump administration, which have started to filter into consumer prices. However, it's not all about inflation. The U.S. economy still shows remarkable resilience. The second-quarter GDP growth exceeded expectations at 3.3%...

Today's Economic Insights - July 1, 2025

  Today's Economic Insights - July 1, 2025 ⚠️ Disclaimer: This content represents personal views based on publicly available economic indicators. All investments should be made based on your own judgment and responsibility. https://www.bbc.com/news/articles/c62553ywn77o Global Market Overview: Rally Amid Trade Progress and Monetary Policy Expectations On the final day of the first half of 2025, global financial markets closed strong, buoyed by progress in U.S. trade negotiations and expectations of accommodative monetary policies from major central banks. Canada's scrapping of its digital services tax and a new trade agreement with China significantly reduced market uncertainties. However, the approaching July 9 deadline for President Trump's tariff reprieve and concerns about economic growth slowdown across major economies remain key market variables. 1. Equity Market Performance United States (S&P 500) Both the S&P 500 and Nasdaq 100 gained 0.5%, reaching ne...