{"id":169,"date":"2021-07-12T10:37:38","date_gmt":"2021-07-12T09:37:38","guid":{"rendered":"http:\/\/xv6.de\/?page_id=169"},"modified":"2021-07-12T10:41:09","modified_gmt":"2021-07-12T09:41:09","slug":"putty-pscp-fails-with-ssh_init-network-error-cannot-assign-requested-address","status":"publish","type":"page","link":"https:\/\/xv6.de\/?page_id=169","title":{"rendered":"Putty PSCP fails with: &#8220;ssh_init: Network error: Cannot assign requested address&#8221;"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-white-color\">E:\\&gt;pscp -v file.tgz user@192.168.5.58:\/file.tgz\nLooking up host \"192.168.5.58\" for SSH connection\nConnecting to 192.168.5.58 port 0\nFailed to connect to 192.168.5.58: Network error: Cannot assign requested address\nssh_init: Network error: Cannot assign requested address\n\nE:\\&gt;\n<\/span><\/code><\/pre>\n\n\n\n<p>On fresh install is pscp using port 0 and not port 22 and fails therefore. This gets visible if you run the command with -v.<\/p>\n\n\n\n<p>Fix one: use -P 22: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-white-color\">pscp -P 22 file.tgz user@192.168.5.58:\/file.tgz<\/span><\/code><\/pre>\n\n\n\n<p>Fix two: Open putty and resave the default session with port 22.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On fresh install is pscp using port 0 and not port 22 and fails therefore. This gets visible if you run the command with -v. Fix one: use -P 22: Fix two: Open putty and resave the default session with port 22.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-169","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xv6.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":4,"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/169\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/169\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/xv6.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}