{"id":224,"date":"2021-04-19T16:57:33","date_gmt":"2021-04-19T15:57:33","guid":{"rendered":"https:\/\/www.netexpertise.eu\/es\/?p=224"},"modified":"2021-10-28T07:13:43","modified_gmt":"2021-10-28T06:13:43","slug":"ssh-shell-predeterminado-e-historial-de-commandos-en-as400","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html","title":{"rendered":"SSH, Shell Predeterminado e Historial de Commandos en AS400"},"content":{"rendered":"\n<p>QSHELL y PASE en <a href=\"\/es\/tag\/ibm-i\">IBM i<\/a> son herramientas interesantes, pero siguen estando limitadas por la ventana 5250 de tama\u00f1o fijo sin elevaci\u00f3n. Veamos c\u00f3mo hacerlos m\u00e1s agradables con una conexi\u00f3n SSH segura y algunos consejos.<br><br><\/p>\n\n\n\n<h3>Inicie el demonio SSH<\/h3>\n\n\n\n<p>Tenga en cuenta que SSH ya est\u00e1 instalado en su AS400, es decir, tiene 5733SC1 (OpenSSH, OpenSSL, zlib) dans LICPGM, puede iniciar el demonio SSH con este comando:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">STRTCPSVR SERVER(*SSHD)<\/code><\/pre>\n\n\n\n<p><br>No parece haber una opci\u00f3n de inicio autom\u00e1tico para el servidor TCP SSH.<br>Termin\u00e9 agregando el comando al programa de inicio <a href=\"\/es\/sistema\/as400\/como-cambiar-el-programa-de-inicio-de-as400-qstrup.html\">QSTRUP<\/a> para que el servidor SSH se inicie autom\u00e1ticamente al IPL. Puede conectarse a su AS400 con <a href=\"http:\/\/www.putty.org\">Putty<\/a> que puedes descargar gratis.<br><br><\/p>\n\n\n\n<h3>Shell Predeterminado en SSH<\/h3>\n\n\n\n<p>El shell predeterminado es bsh, que es bastante limitado y poco com\u00fan en otros sistemas operativos. Se puede cambiar en el archivo sshd_config (situado en \/QOpenSys\/QIBM\/UserData\/SC1\/OpenSSH\/openssh-4.7p1\/etc) agreg\u00e1ndo<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">#ibm pase for IBM i shell\nibmpaseforishell \/QOpenSys\/usr\/bin\/ksh<\/code><\/pre>\n\n\n\n<p>como se menciona en el <a href=\"http:\/\/www-01.ibm.com\/support\/docview.wss?uid=nas8N1011555\">sitio web IBM<\/a>.<\/p>\n\n\n\n<p>Tambi\u00e9n se requiere ksh para que tenga el historial de comandos en la terminal.<br><br><\/p>\n\n\n\n<h3>Historial de Commandos<\/h3>\n\n\n\n<p>Una vez que ksh es el shell predeterminado, puede configurar las teclas de flecha para navegar por el historial de comandos. \u00a1No es necesario escribir los comandos una y otra vez!<br><br>En el directorio de inicio, cree un archivo .profile, el cual ser\u00e1 cargado cada vez que conectase con ssh al AS400:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">if [[ $SHELL = \"\/QOpenSys\/usr\/bin\/ksh\" ]]; then\n  set -o emacs\n  alias __A=`echo \"\\020\"`     # up arrow = ^p = back a command\n  alias __B=`echo \"\\016\"`     # down arrow = ^n = down a command\n  alias __C=`echo \"\\006\"`     # right arrow = ^f = forward a character\n  alias __D=`echo \"\\002\"`     # left arrow = ^b = back a character\n  alias __H=`echo \"\\001\"`     # home = ^a = start of line\n  alias __Y=`echo \"\\005\"`     # end = ^e = end of line\nfi<\/code><\/pre>\n\n\n\n<p><br>Reinicie el demonio SSH y vuelva a conectarse.<br>En la 1\u00aa l\u00ednea, comprobamos que el shell es realmente ksh ya que los cambios realizados solo se aplican a las conexiones SSH pero no a QSH o PASE (QP2TERM).<br><br>\u00a1Connectar con Putty es m\u00e1s conveniente que llamar a QP2TERM en una ventana 5250 de tama\u00f1o fijo!<br>Puede hacer lo mismo con bash si se ha instalado en su sistema. Indicaci\u00f3n: Instale 5733OPS Opci\u00f3n 3, gcc viene con bash, perl o rpm despu\u00e9s de la instalaci\u00f3n.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>QSHELL y PASE en IBM i son herramientas interesantes, pero siguen estando limitadas por la ventana 5250 de tama\u00f1o fijo sin elevaci\u00f3n. Veamos c\u00f3mo hacerlos m\u00e1s agradables con una conexi\u00f3n SSH segura y algunos consejos. Inicie el demonio SSH Tenga en cuenta que SSH ya est\u00e1 instalado en su AS400, es decir, tiene 5733SC1 (OpenSSH, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[27,94],"tags":[38,39,55,85],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - SSH, Shell Predeterminado e Historial de Commandos en AS400<\/title>\n<meta name=\"description\" content=\"Configure SSH, con ksh o bash como shells predeterminados y benef\u00edciese de la llamada de comando en la plataforma AS400 \/ IBM i\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - SSH, Shell Predeterminado e Historial de Commandos en AS400\" \/>\n<meta property=\"og:description\" content=\"Configure SSH, con ksh o bash como shells predeterminados y benef\u00edciese de la llamada de comando en la plataforma AS400 \/ IBM i\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-19T15:57:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-28T06:13:43+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html\",\"url\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html\",\"name\":\"Netexpertise - SSH, Shell Predeterminado e Historial de Commandos en AS400\",\"isPartOf\":{\"@id\":\"https:\/\/www.netexpertise.eu\/es\/#website\"},\"datePublished\":\"2021-04-19T15:57:33+00:00\",\"dateModified\":\"2021-10-28T06:13:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf\"},\"description\":\"Configure SSH, con ksh o bash como shells predeterminados y benef\u00edciese de la llamada de comando en la plataforma AS400 \/ IBM i\",\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/www.netexpertise.eu\/es\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SSH, Shell Predeterminado e Historial de Commandos en AS400\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.netexpertise.eu\/es\/#website\",\"url\":\"https:\/\/www.netexpertise.eu\/es\/\",\"name\":\"Netexpertise\",\"description\":\"Sistemas \/ Redes \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.netexpertise.eu\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - SSH, Shell Predeterminado e Historial de Commandos en AS400","description":"Configure SSH, con ksh o bash como shells predeterminados y benef\u00edciese de la llamada de comando en la plataforma AS400 \/ IBM i","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html","og_locale":"es_ES","og_type":"article","og_title":"Netexpertise - SSH, Shell Predeterminado e Historial de Commandos en AS400","og_description":"Configure SSH, con ksh o bash como shells predeterminados y benef\u00edciese de la llamada de comando en la plataforma AS400 \/ IBM i","og_url":"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html","og_site_name":"Netexpertise","article_published_time":"2021-04-19T15:57:33+00:00","article_modified_time":"2021-10-28T06:13:43+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html","url":"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html","name":"Netexpertise - SSH, Shell Predeterminado e Historial de Commandos en AS400","isPartOf":{"@id":"https:\/\/www.netexpertise.eu\/es\/#website"},"datePublished":"2021-04-19T15:57:33+00:00","dateModified":"2021-10-28T06:13:43+00:00","author":{"@id":"https:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf"},"description":"Configure SSH, con ksh o bash como shells predeterminados y benef\u00edciese de la llamada de comando en la plataforma AS400 \/ IBM i","breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/es\/sistema\/as400\/ssh-shell-predeterminado-e-historial-de-commandos-en-as400.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/www.netexpertise.eu\/es"},{"@type":"ListItem","position":2,"name":"SSH, Shell Predeterminado e Historial de Commandos en AS400"}]},{"@type":"WebSite","@id":"https:\/\/www.netexpertise.eu\/es\/#website","url":"https:\/\/www.netexpertise.eu\/es\/","name":"Netexpertise","description":"Sistemas \/ Redes \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.netexpertise.eu\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf","name":"dave","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"}}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts\/224"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":10,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":333,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts\/224\/revisions\/333"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}