{"id":315,"date":"2022-07-26T12:31:14","date_gmt":"2022-07-26T03:31:14","guid":{"rendered":"http:\/\/192.168.0.139:8080\/2022\/07\/26\/ubuntu22-04%e3%81%ab%e7%a7%98%e5%af%86%e9%8d%b5%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b\/"},"modified":"2022-07-26T12:31:14","modified_gmt":"2022-07-26T03:31:14","slug":"ubuntu22-04%e3%81%ab%e7%a7%98%e5%af%86%e9%8d%b5%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/192.168.0.139:8080\/2022\/07\/26\/315\/","title":{"rendered":"ubuntu22.04\u306b\u79d8\u5bc6\u9375\u3092\u4f7f\u3063\u3066\u63a5\u7d9a\u3059\u308b"},"content":{"rendered":"\n

\u5148\u65e5\u3001Google Cloud\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u6642\u306b\u3001OS\u3068\u3057\u3066ubuntu22.04\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u3053\u306720.04\u306e\u6642\u3068\u540c\u69d8\u306b\u3057\u3066SSH\u63a5\u7d9a\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u305f\u3089\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u63a5\u7d9a\u30bd\u30d5\u30c8\u306b\u306fTeraTerm\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u30df\u30b9\u304c\u3042\u308b\u3068\u601d\u3044\u4f55\u5ea6\u304b\u3084\u308a\u76f4\u3057\u307e\u3057\u305f\u304c\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u3002\u307e\u3060\u3001ubuntu22.04\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u9593\u3082\u306a\u3044\u306e\u3067Google Cloud\u304c\u306a\u306b\u304b\u3057\u3089\u306e\u7406\u7531\u3067\u5bfe\u5fdc\u3057\u3066\u306a\u3044\u3068\u52dd\u624b\u306b\u8003\u3048\u3066\u5bfe\u51e6\u305b\u305a\u306b\u3044\u307e\u3057\u305f\u3002
\u5c11\u3057\u6642\u9593\u304c\u7d4c\u904e\u3057\u3066\u3001Oracle Cloud\u3067\u3082\u8a66\u3057\u307e\u3057\u305f\u304c\u63a5\u7d9a\u304c\u51fa\u6765\u307e\u305b\u3093\u3002
\u4eca\u5ea6\u306f\u63a5\u7d9a\u3067\u304d\u306a\u3044\u7406\u7531\u3092\u8abf\u3079\u3066\u3044\u308b\u3068ubuntu22.04\u306e\u4ed5\u69d8\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u3066\u63a5\u7d9a\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u5bfe\u51e6\u3057\u307e\u3059\u3002
\u3069\u3046\u3084\u3089\u300122.04\u3067\u306fssh-rsa\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u7121\u52b9\u306e\u3088\u3046\u3067\u3059\u3002LAN\u5185\u3067\u306f\u9375\u3092\u4f7f\u7528\u305b\u305a\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u305f\u306e\u3067\u76f2\u70b9\u3067\u3057\u305f\u3002<\/p>\n\n\n\n

\u305d\u308c\u3067\u306f\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002
\u81ea\u5b85\u306eWindows\u7aef\u672b\u3067\u4f5c\u696d\u3057\u307e\u3059\u3002PowerShell\u3092\u958b\u3044\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002Oracle Cloud\u3067\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u6642\u306b\u516c\u958b\u9375\u3068\u79d8\u5bc6\u9375\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

ssh -i \u79d8\u5bc6\u9375\u306e\u5b58\u5728\u3059\u308b\u30d1\u30b9+\u9375\u306e\u30d5\u30a1\u30a4\u30eb\u540d ubuntu@\u5916\u90e8IP\u30a2\u30c9\u30ec\u30b9<\/code><\/pre>\n\n\n\n

\u5b9f\u969b\u306e\u4f8b
ssh -i C:UsersminokOneDrive\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8oraclessh-key.key ubuntu@140.34.56.78<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u9375\u306e\u5834\u6240\u304c\u8907\u96d1\u306a\u968e\u5c64\u306b\u3042\u308b\u5834\u5408\u306f\u3001\u4e00\u5ea6\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3092\u958b\u3044\u3066\u30a2\u30c9\u30ec\u30b9\u3092\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3082\u3057\u304f\u306fC\u30c9\u30e9\u30a4\u30d6\u76f4\u4e0b\u306a\u3069\u7c21\u5358\u306a\u5834\u6240\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300cyes\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

ECDSA key fingerprint is SHA256:
Are you sure you want to continue connecting (yes\/no\/[fingerprint])?<\/p>\n\n\n\n

\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u30eb\u30fc\u30c8\u306b\u5207\u308a\u66ff\u3048\u3066\u3001sed\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u6587\u5b57\u5217\u3092\u5168\u7f6e\u63db\u3057\u305f\u308a\u3001\u884c\u5358\u4f4d\u3067\u62bd\u51fa\u3057\u305f\u308a\u3001\u524a\u9664\u3057\u305f\u308a\u3001\u3044\u308d\u3044\u308d\u306a\u30c6\u30ad\u30b9\u30c8\u51e6\u7406\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

sudo su -\nsed -i '1s\/^\/PubkeyAcceptedAlgorithms=+ssh-rsan\/' \/etc\/ssh\/sshd_config<\/code><\/pre>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

\u6700\u5f8c\u306b\u66f8\u304d\u63db\u3048\u305f\u5185\u5bb9\u3092\u53cd\u6620\u3059\u308b\u305f\u3081SSH\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

systemctl restart ssh.service<\/code><\/pre>\n\n\n\n

\u3053\u308c\u3067TeraTerm\u3067\u9375\u3092\u4f7f\u3044\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n

\n