Ubuntu12.04にopenSSHをインストール&設定する

本日でssh接続攻略です。

ウェブサーバーがクライアント(開発機)からのアクセスをどう判別していたか、sshのインストール過程で仕組みを理解できました!

 

まずはサーバー側

①サーバーにopenSSH Serverをインストール。

sudo apt-get install openssh-server

②インストールができたら、sshdの設定

sudo vi /etc/ssh/sshd_config

configファイルに記載されている下記のフラグを修正。

PermitRootLogin no  → ルートログインを拒否 
PermitEmptyPasswords no  → 空のパスワードを拒否
PasswordAuthentication no → パスワード認証を拒否(公開鍵認証)

③sshdを再起動

sudo /etc/init.d/ssh restart

続いてクライアント側(mac lion)

④ターミナルを開き、公開鍵を生成

ssh-keygen

パスワードを求められるので適当に入力。 <Enter>

id_rsa.pub をSCPかなんかんでサーバー側にコピー

scp .ssh/id_rsa.pub “ログインユーザー名”@”サーバーアドレス”:~/.ssh/authorized_keys

要は、サーバー側のauthorized_keysファイルにクライアント側のid_rsa.pubの内容を加筆すればいいという話です。どうにかして加筆してください。

(念のため)サーバー側に戻り、
⑤authorized_keysと.ssh/のアクセス権限を修正

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

アクセス権限がおかしいと接続時に怒られるらしい。

いざサーバーに接続。

とりあえずローカルネットワークに居るサーバーに向けて

ssh t_ishiyama@Sun.local

無事つながりました。

スクリーンショット 2013-02-11 20.18.12のコピー

んん…なんか死んでるプロセスがあるな…まあ気にせず。

公開鍵の登録が済んでないと、こんな感じに怒られます。

1

(結局)サーバーをオープンにするほどセキュリティ周りがかなり不安なんですが、UFWでもつけておけばいいのかな…?教えて詳しい人。

参考: MacBookからUbuntuへsshで繋ぐ – 今日とは違う明日

← Previous post

Next post →

101 Comments

  1. Please let Pritham carry out whatever this individual really does ideal understanding that no-one more was in a position repeat. Gone include the time in shanties, individuals and also hippie hangouts. There may be even now ample funkiness from this place for the purpose of anything and also anybody to help you merge proportion..

  2. That doesn’t however compete with the particular 122percent escalate for any Toyota Prius profits and the particular 106percent escalate for any Toyota Social within the equivalent timeframe. However it’s a huge start up. Kia is actually establishing the particular gaselectric multiple, 47milespergallon CMax truck to help you task the particular Toyota Prius truck.

  3. Quand about dit que l’ensemble des Flyers and pas jou inspir, pourquoi ne seraitce pas nos Habs qui l’ensemble des ont plutt bien jou? Quand about realized additionally de pression sur the porteur de chicago rondelle que d quipe ne the fait, il se révèle être logique de contrler the jeu. L’ensemble des Flyers avaient d de jouer de chicago mme faon que chemical J promote simplement que the Canadiens your impos the jeu. Chicago preuve, Giroux durante tait frustr de ne pas pouvoir faire ce qu voulait avec chicago rondelle..

  4. DANNY OUR BAIT not to mention his or her loved ones understand any expectation, hesitation, manipulations, and decisions associated with city to city and intracity relocations and home purchases after over 18 moves during an Air Force Career, where by he / she listing is of course to be a Fundamental Get good at Sargent and even future coach transfers though possessing mature and even management stage rankings in public areas Transit. Was accustom to help you working together with persons by most guides in existence, in the slightest degree numbers of govt and even individual community organisations, and even taking pleasure in ones own rely on and even self confidence even as we accomplish good final results intended for things in communal fascination. Danny will be committed having 2 children and even 3 grandchildren.

  5. Diverse outlines available to be able to completely different situations, this kind of because Nike Atmosphere Greatest extent 2003 boot styles and / or trainers, planned with regard to official operates. It truly is crystal clear of which individuals are delighted any time sportsmen. Nike the optimal way to color selection the actual specific Nike Atmosphere Greatest extent 247, not to mention here’s a additional for your variety.

  6. Where should i browse then simply? My spouse and i browse during low cost suppliers for instance TJMaxx, Marshall’s along with DSW. I have by no means attended Kohl’s, however My spouse and i notice people suppliers are usually fantastic, also. My spouse and i familiar with reckon that My spouse and i had been compromising one thing on human eye the event, considering that people suppliers can on occasion have a little bit messier as compared with the regular unit retailer..

  7. That they simply expected you are aware the figures on a person’s blowup for instance: 3, 6, 8 toes ect. We were looking at distributed with a fair price tag from all-around $35. 00. If your primary firm has got things of this nature accessible, why not place the knowledge along with I can communicate with an individual.

  8. This internet page facilitators furthermore talk about, provides changed the Pampers Cruiser motorcycles along with Swaddlers path to a poor system. We’ve found not even had the oppertunity towards technically validate (because of Pampers) nevertheless the Newly born baby Dry up plus EasyUps can also were transferred with an lower products equally to be achieved without the need of good notice and also ads in the naive client, there is a recently available arrangement modify by Drive 2010 though in every Pampers they have perhaps got this specific engineering while in the client family homes considering ’09. A site is designed with a blog for the purpose of mom and dad to talk about exclusive activities considering the diapers, sometimes submit shots from unhealthy rashes his or her young ones experienced therefore..

  9. In truth leading up to You and me, Stussy Nike boots or shoes currently have come to be element of to people. On that basis, cohesiveness among the many several scratches in the all-natural. “” In a really decent, My spouse and i found perch come through the.

  10. Emotin Comet 11: Formerly Launched throughout 2011 because Comet 110, that Comet 11 may be the Comet Kayak via Experience Kayaks. That kayak functions most of the very good selections on the Comet 8, plus the even bigger dimension can make it workable intended for much larger paddlers and allows some sort of maximum fat potential regarding 350 weight. Your Comet 11 contains enhancements towards seats method, backside outdoor patio rigging, as well as minor modifications towards facade lettering as well as images..

  11. Ubuntu12.04にopenSSHをインストール&設定する | Behind the Design. oakley sunglasses sale http://www.discountsunglassesshopoutlet.com/

  12. c5aSav wonderful issues altogether, you just won a new reader. What might you recommend about your post that you made some days in the past? Any certain?

  13. “Hey there! I’m at work surfing around your blog from my new apple iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the superb work!”

  14. to ask. Does operating a well-established blog like yours take

  15. Please let me know if you are looking for a article author for your blog. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off,

  16. I am so grateful for your blog article.Much thanks again. Awesome.

  17. Muchos Gracias for your blog.Really looking forward to read more. Fantastic.

  18. Muchos Gracias for your blog post.Much thanks again. Great.

  19. Really appreciate you sharing this article post.Much thanks again. Really Cool.

  20. What as Happening i am new to this, I stumbled upon this I ave found It absolutely useful and it has helped me out loads. I hope to contribute & assist other users like its aided me. Good job.

  21. I visited a lot of website but I believe this one holds something extra in it in it

  22. Great, thanks for sharing this blog. Cool.

  23. Really clear website , appreciate it for this post.

  24. Major thanks for the article post.Thanks Again. Great.

  25. this webpage on regular basis to obtain updated from

  26. Thank you ever so for you blog.Much thanks again. Will read on

  27. Thanks a lot for the blog post.Really thank you! Will read on

  28. Fantastic blog.Thanks Again.

  29. Im grateful for the article.Much thanks again. Will read on…

  30. Major thankies for the post.Thanks Again. Fantastic.

  31. Im grateful for the post.Much thanks again. Much obliged.

  32. Looking forward to reading more. Great article.Really looking forward to read more. Will read on…

  33. Looking forward to reading more. Great blog post.Really thank you! Much obliged.

  34. Some truly nice and utilitarian information on this website , also I think the design holds good features.

  35. Im thankful for the article.Really looking forward to read more. Cool.

  36. I seriously enjoy your posts. Many thanks

  37. Wow, superb blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is fantastic, as well as the content!. Thanks For Your article about sex.

  38. I value the post.Much thanks again. Much obliged.

  39. Appreciate you sharing, great article post.Thanks Again. Awesome.

  40. Really enjoyed this blog.Really looking forward to read more. Awesome.

  41. Wow, great article.Much thanks again. Much obliged.

  42. Muchos Gracias for your article.Really thank you!

  43. Really informative blog article.Thanks Again. Fantastic.

  44. Very neat article.Much thanks again. Awesome.

  45. Really enjoyed this blog article.Really looking forward to read more. Fantastic.

  46. Ms. Kadetskaya is an excellent lawyer. She kept me informed every step of the way concerning my case. She is very knowledgeable.

  47. Thanks again for the blog article.Much thanks again. Fantastic.

  48. I appreciate you sharing this article post.Much thanks again. Will read on…

  49. Wow, great blog post.Much thanks again. Really Cool.

  50. Im grateful for the blog post.Much thanks again. Will read on…

  51. Really informative article.Really looking forward to read more. Cool.

  52. Appreciate you sharing, great article.Really looking forward to read more. Awesome.

  53. Thanks again for the blog article.Thanks Again. Fantastic.

  54. I simply want to mention I am just new to blogging and definitely savored your web page. Most likely I’m want to bookmark your site . You amazingly have tremendous writings. Bless you for sharing your webpage.

  55. I cannot thank you enough for the article.Much thanks again. Keep writing.

  56. Very informative post.Much thanks again. Will read on…

  57. Really appreciate you sharing this post. Cool.

  58. Spot on with this write-up, I absolutely believe that this web site needs far more attention. I all probably be returning to see more, thanks for the info!

  59. Well I sincerely enjoyed studying it. This tip procured by you is very useful for good planning.

  60. I think this is a real great article.Thanks Again. Want more.

  61. Well I really liked studying it. This article offered by you is very constructive for correct planning.

  62. Im no expert, but I think you just crafted a very good point point. You definitely understand what youre talking about, and I can truly get behind that. Thanks for being so upfront and so truthful.

  63. Thanks again for the article post.Thanks Again. Awesome.

  64. I really liked your article.Thanks Again. Cool.

  65. Wow, amazing blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is wonderful, let alone the content!. Thanks For Your article about sex.

  66. Great post.Really looking forward to read more.

  67. I seriously delight in your posts. Many thanks

  68. It as not that I want to duplicate your web-site, but I really like the design. Could you let me know which theme are you using? Or was it especially designed?

  69. vibram five fingers shoes WALSH | ENDORA

  70. Thank you ever so for you post.Much thanks again. Really Cool.

  71. I really liked your post. Want more.

  72. Awesome article post.Thanks Again. Awesome.

  73. Thanks for sharing amazing Article.

  74. Really enjoyed this blog post.Much thanks again. Fantastic.

  75. the book in it or something. I think that you can do with

  76. wow, awesome article post.Really thank you! Will read on…

  77. Im obliged for the post.Really thank you! Really Cool.

  78. Thanks for sharing this amazing service

  79. Really informative post. Really Cool.

  80. Muchos Gracias for your article.Really looking forward to read more. Keep writing.

  81. Really appreciate you sharing this blog post.Really thank you! Want more.

  82. So happy to get discovered this post.. Excellent ideas you possess here.. I value you blogging your perspective.. I value you conveying your perspective..

  83. I loved your post.Much thanks again. Will read on…

  84. Fantastic article. Really Cool.

  85. I value the blog.Much thanks again. Cool.

  86. I loved your article post.Really thank you!

  87. That is a very good tip especially to those fresh to the blogosphere. Brief but very precise information Thanks for sharing this one. A must read post!

  88. Thank you ever so for you article post.Really thank you!

  89. Really appreciate you sharing this blog.Much thanks again. Keep writing.

  90. Thank for the article. Worth reading

  91. Muchos Gracias for your blog article.Really looking forward to read more. Want more.

  92. Wow, great blog article.Much thanks again. Cool.

  93. Im obliged for the blog article.Thanks Again. Really Cool.

  94. A round of applause for your blog.Much thanks again. Will read on…

  95. Muchos Gracias for your blog post.Really looking forward to read more. Keep writing.

  96. Z5NyG6 important site Of course, you are not using some Under-developed place, The united kingdom possesses high water-purification benchmarks

  97. Great blog.Really looking forward to read more. Great.

  98. Thanks for this amaing article.

  99. This is one awesome blog article. Fantastic.

  100. Thanks for the article.

  101. Im grateful for the blog article.Much thanks again. Will read on…

コメントを残す