{"id":281,"date":"2018-03-31T20:35:13","date_gmt":"2018-03-31T11:35:13","guid":{"rendered":"http:\/\/ito-u-oti.com\/?p=281"},"modified":"2018-05-06T12:36:25","modified_gmt":"2018-05-06T03:36:25","slug":"post-281","status":"publish","type":"post","link":"https:\/\/ito-u-oti.com\/?p=281","title":{"rendered":"Jsch\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u305fssh\u8ee2\u9001\u51e6\u7406\u3067\u30a8\u30e9\u30fc\u3000failed to send channel request"},"content":{"rendered":"<h2 id=\"outline__1\">Jsch\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u305fssh\u8ee2\u9001\u51e6\u7406\u3067\u30a8\u30e9\u30fc\u3000failed to send channel request<\/h2>\n<h3 id=\"outline__1_1\">\u4e8b\u8c61<\/h3>\n<p>Jsch\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u305fssh\u8ee2\u9001\u51e6\u7406\u3067\u30a8\u30e9\u30fc<br \/>\n\u4f7f\u7528\u74b0\u5883<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3000win7<br \/>\n\u30b5\u30fc\u30d0\u3000ubuntu<\/p>\n<p>WinSCP\u3068\u304b\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089SSH\u63a5\u7d9a\u306f\u3067\u304d\u308b\u72b6\u614b\u3002<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304b\u3089\u30b5\u30fc\u30d0\u5074\u306b\u5411\u3051\u3066\u306eSSH\u63a5\u7d9a\u51e6\u7406\u3092STS\u304b\u3089\u5b9f\u884c\u3057\u305f\u3002<br \/>\n\u9375\u65b9\u5f0f\u3067\u306e\u63a5\u7d9a\u3067\u3001\u30b5\u30fc\u30d0\u5074\u3067\u751f\u6210\u3057\u305f\u79d8\u5bc6\u9375\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3 id=\"outline__1_2\">\u30a8\u30e9\u30fc\u5185\u5bb9<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ncom.jcraft.jsch.JSchException: failed to send channel request\r\n\tat com.jcraft.jsch.Request.write(Request.java:65)\r\n\tat com.jcraft.jsch.RequestSftp.request(RequestSftp.java:47)\r\n\tat com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:237)\r\n\tat com.jcraft.jsch.Channel.connect(Channel.java:152)\r\n\tat com.jcraft.jsch.Channel.connect(Channel.java:145)\r\n\tat sftp.SFTP_transfer.SftpSample.connectChannelSftp(SftpSample.java:151)\r\n\tat sftp.SFTP_transfer.SftpSample.putFile(SftpSample.java:46)\r\n\tat sftp.SFTP_transfer.App.main(App.java:23)\r\n<\/pre>\n<h3 id=\"outline__1_3\">\u539f\u56e0<\/h3>\n<p>Java\u306e\u8a18\u8ff0\u3067\u306f\u306a\u304f\u3001\u30b5\u30fc\u30d0\u5074\u306e\u8a2d\u5b9a\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u304c\u591a\u3044\u3002<\/p>\n<h3 id=\"outline__1_4\">\u89e3\u6c7a\u7b56<\/h3>\n<p>\u30b5\u30fc\u30d0\u5074\uff08ubuntu\uff09\u4e0a\u306esshd_config\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&gt;sudo vi \/etc\/ssh\/sshd_config\r\n<\/pre>\n<p>\u300cSubsystem sftp internal-sftp\u300d<br \/>\n\u3092\u672b\u5c3e\u306b\u8ffd\u8a18\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&gt;sudo \/etc\/init.d\/ssh restart\r\n<\/pre>\n<p>\u518d\u5ea6STS\u4e0a\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u7121\u4e8b\u63a5\u7d9a\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3 id=\"outline__1_5\">\u53c2\u8003<\/h3>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/14769164\/jsch-error-failed-to-send-channel-request\">Jsch error &#8211; failed to send channel request<\/a><\/p>\n<p>Java\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u306eSSH\u63a5\u7d9a\u304c\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3063\u3066\u3082\u3046\u67af\u308c\u3066\u3044\u308b\u6280\u8853\u306a\u306e\u304b\u3042\u307e\u308a\u306a\u304f\u3066\u3001<br \/>\n\u4e00\u756a\u4f7f\u308f\u308c\u3066\u3044\u308b\u3063\u307d\u3044Jsch\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u8a18\u4e8b\u304c\u5c11\u306a\u304f\u3066\u30a8\u30e9\u30fc\u5bfe\u51e6\u3067\u30b0\u30b0\u308b\u306e\u3068\u304b\u8f9b\u3044\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jsch\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u305fssh\u8ee2\u9001\u51e6\u7406\u3067\u30a8\u30e9\u30fc\u3000failed to send channel re [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":257,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6],"tags":[63,96,109,20,101],"class_list":["post-281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-error-bugs","category-programing","tag-eclipse","tag-java","tag-jsch","tag-ssh","tag-sts"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281"}],"version-history":[{"count":3,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions\/484"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/media\/257"}],"wp:attachment":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}