{"id":1559,"date":"2022-02-02T12:07:06","date_gmt":"2022-02-02T11:07:06","guid":{"rendered":"https:\/\/www.armonie.group\/how-do-i-configure-bash-for-ssh-on-an-ibm-i\/"},"modified":"2024-02-02T14:31:38","modified_gmt":"2024-02-02T13:31:38","slug":"how-do-i-configure-bash-for-ssh-on-an-ibm-i","status":"publish","type":"post","link":"https:\/\/www.armonie.group\/en\/how-do-i-configure-bash-for-ssh-on-an-ibm-i\/","title":{"rendered":"How do I configure Bash for SSH on an IBM i?"},"content":{"rendered":"[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.14.8&#8243; background_color=&#8221;#0b6cc6&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;3.25&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.14.8&#8243; text_font_size=&#8221;20px&#8221; header_font=&#8221;Poppins|700|||||||&#8221; header_text_align=&#8221;center&#8221; header_text_color=&#8221;#FFFFFF&#8221; header_font_size=&#8221;43px&#8221; header_2_font=&#8221;Poppins||||||||&#8221; header_2_text_align=&#8221;center&#8221; header_2_text_color=&#8221;#01013A&#8221; background_color=&#8221;RGBA(255,255,255,0)&#8221; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; custom_margin=&#8221;||-16px||false|false&#8221; custom_padding=&#8221;30px|30px||30px|false|false&#8221; global_colors_info=&#8221;{}&#8221;]<h2><b>blog notos<\/b><\/h2>\n<p><strong><\/strong><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.14.8&#8243; text_font_size=&#8221;20px&#8221; header_font=&#8221;Poppins|700|||||||&#8221; header_text_align=&#8221;center&#8221; header_text_color=&#8221;#FFFFFF&#8221; header_font_size=&#8221;43px&#8221; background_color=&#8221;RGBA(255,255,255,0)&#8221; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; custom_padding=&#8221;30px|30px|30px|30px|false|false&#8221; global_colors_info=&#8221;{}&#8221;]<h1><strong>How to configure Bash in SSH  <br>on an IBM i?<\/strong><\/h1>\n<p><strong><!-- \/wp:post-content --><\/strong><\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;3.22&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;3.25&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.14.8&#8243; text_font_size=&#8221;20px&#8221; background_color=&#8221;rgba(11,128,191,0.5)&#8221; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; custom_padding=&#8221;30px|30px|30px|30px|false|false&#8221; global_colors_info=&#8221;{}&#8221;]<p><strong>The addition of new packages to IBM&#8217;s Open Source module has given many people with little or no IBM i experience an entry point into this ecosystem.<\/strong><\/p>\n<p><strong><!-- \/wp:paragraph --><\/strong><\/p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.14.8&#8243; _module_preset=&#8221;default&#8221; text_text_color=&#8221;#000000&#8243; global_colors_info=&#8221;{}&#8221;]<p><strong>The considerable addition of new packages to IBM&#8217;s Open Source module has given many people with little or no IBM i experience an entry point into this ecosystem. They now have many of the components to which they are already accustomed, but unfortunately a number of convenience features are missing from the default shell. For example, the up arrow does not retrieve the last command, and the tab key does not autocomplete paths. To remedy this lack of productivity, simply use Bash as a shell.<\/strong><\/p>\n<p>Two approaches are possible:<\/p>\n<ol start=\"1\" style=\"list-style-type: decimal;\">\n<li><span style=\"font-family: 'Open Sans'; font-size: 16px; font-style: normal; letter-spacing: 0px;\">Using chsh<\/span><\/li>\n<\/ol>\n<ul style=\"margin-left: 40px;\">\n<li><span style=\"font-family: 'Open Sans'; font-size: 16px; font-style: normal; letter-spacing: 0px;\">Install the chsh package via the Open Source Module Manager :<\/span><\/li>\n<\/ul>[\/et_pb_text][et_pb_image src=&#8221;http:\/\/jsbteat.cluster030.hosting.ovh.net\/wp-content\/uploads\/2022\/05\/1643855466481.png&#8221; title_text=&#8221;1643855466481&#8243; _builder_version=&#8221;4.14.8&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.14.8&#8243; _module_preset=&#8221;default&#8221; text_text_color=&#8221;#000000&#8243; global_colors_info=&#8221;{}&#8221;]<p>&nbsp;<\/p>\n<ul style=\"margin-left: 40px;\">\n<li><span style=\"font-family: 'Open Sans'; font-size: 16px; font-style: normal; letter-spacing: 0px;\">On a shell, run the command chsh -s \/QOpenSys\/pkgs\/bin\/bash -u ARMONIE. Replace ARMONIE with the IBM i profile name<\/span><\/li>\n<\/ul>\n<p>Note: <em>This modification applies only to the specified &#8220;ARMONIE&#8221; user, and will take effect the next time you reconnect to SSH<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<ol start=\"2\" style=\"list-style-type: decimal;\">\n<li><span style=\"font-family: 'Open Sans'; font-size: 16px; font-style: normal; letter-spacing: 0px;\">Using SQL<\/span><\/li>\n<\/ol>\n<ul style=\"margin-left: 40px;\">\n<li><span style=\"font-family: 'Open Sans'; font-size: 16px; font-style: normal; letter-spacing: 0px;\">Connecting to the SQL Script Executor<\/span><\/li>\n<li><span style=\"font-family: 'Open Sans'; font-size: 16px; font-style: normal; letter-spacing: 0px;\">Execute the following SQL command: CALL QSYS2.SET_PASE_SHELL_INFO(&#8216;ARMONIE&#8217;, &#8216;\/QOpenSys\/pkgs\/bin\/bash&#8217;);<\/span><\/li>\n<\/ul>\n<p>Note: <em>*It is also possible to replace the user <\/em>with &#8221; <em>DEFAULT&#8221; to apply the modification to all users who have not explicitly configured a shell<\/em>.<\/p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<!-- \/wp:freeform -->","protected":false},"excerpt":{"rendered":"<p>blog notos How to configure Bash in SSH on an IBM i? The addition of new packages to IBM&#8217;s Open Source module has given many people with little or no IBM i experience an entry point into this ecosystem. The considerable addition of new packages to IBM&#8217;s Open Source module has given many people with [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1450,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[55,56],"tags":[],"class_list":["post-1559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news-en","category-notos-en"],"_links":{"self":[{"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/posts\/1559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/comments?post=1559"}],"version-history":[{"count":12,"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/posts\/1559\/revisions"}],"predecessor-version":[{"id":3328,"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/posts\/1559\/revisions\/3328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/media\/1450"}],"wp:attachment":[{"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/media?parent=1559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/categories?post=1559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.armonie.group\/en\/wp-json\/wp\/v2\/tags?post=1559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}