<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>groovy</anon>
    <anon>spock</anon>
  </categories>
  <description>Apache MINA sshd（以下sshd）を使うとJavaVMだけでSSHサーバを実行できます。あらかじめ定義されているインタフェースを実装するだけで、認証やコマンド実行を受け付けることができます。 本稿では、SSH接続のコードをテストする場合にサーバサイドにsshdを使う方法を説明します。OpenSSHの環境を用意しなくてもSSHサーバを使ったテストが簡単に実行できます。ここではテストコードはGroovy + Spockで書いています。 準備編 sshdのライブラリをテストクラスパスに追加します。Gradleなら下記の依存関係を追加します。 dependencies { testCom…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2014%2F03%2F28%2F001055&quot; title=&quot;SSH接続のコードをApache MINA sshdでテストする - GeekFactory&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-03-28 00:10:55</published>
  <title>SSH接続のコードをApache MINA sshdでテストする</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2014/03/28/001055</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
