{"id":1286,"date":"2022-10-19T11:54:04","date_gmt":"2022-10-19T11:54:04","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=1286"},"modified":"2022-11-05T19:39:20","modified_gmt":"2022-11-05T19:39:20","slug":"problems-using-scp-to-upload-a-file-to-a-vcenter-appliance-e-g-with-winscp","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=1286","title":{"rendered":"Problems Using SCP to Upload a File to a vCenter Appliance (e.g. with WinSCP)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you are having trouble uploading a file via SCP to vCenter then VMware provide a great document on how to resolve this. You&#8217;ll be seeing an error like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/kb.vmware.com\/s\/article\/2107727\">https:\/\/kb.vmware.com\/s\/article\/2107727<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Essentially what you need to do is logon via SSH to vCenter, swap the Shell to BASH, upload the file, then swap the Shell back to the ApplianceSH shell.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Logon with SSH, then enter the &#8220;shell&#8221; then run at the command line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chsh -s \/bin\/bash root<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Upload your file with SCP, then run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chsh -s \/bin\/appliancesh root<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you are having trouble uploading a file via SCP to vCenter then VMware provide a great document on how to resolve this. You&#8217;ll be seeing an error like: https:\/\/kb.vmware.com\/s\/article\/2107727 Essentially what you need to do is logon via SSH to vCenter, swap the Shell to BASH, upload the file, then swap the Shell back &#8230; <a title=\"Problems Using SCP to Upload a File to a vCenter Appliance (e.g. with WinSCP)\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=1286\" aria-label=\"Read more about Problems Using SCP to Upload a File to a vCenter Appliance (e.g. with WinSCP)\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":1747,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-1286","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1286"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1286\/revisions"}],"predecessor-version":[{"id":1292,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1286\/revisions\/1292"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/media\/1747"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}