{"id":351,"date":"2018-08-13T12:19:29","date_gmt":"2018-08-13T09:19:29","guid":{"rendered":"http:\/\/kifarunix.com\/?p=351"},"modified":"2024-03-10T17:57:55","modified_gmt":"2024-03-10T14:57:55","slug":"how-to-enable-secure-shell-ssh-server-on-opnsense","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-enable-secure-shell-ssh-server-on-opnsense\/","title":{"rendered":"How to Enable Secure Shell (SSH) server on OPNsense"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to enable Secure Shell (SSH) server on <a href=\"https:\/\/opnsense.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">OPNsense<\/a>. SSH is one of the defacto secure methods of logging into a remote computer or server over an unsecured network. Thus enabling its use on a system is paramount for any system administration tasks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enabling Secure Shell (SSH) server on OPNsense<\/h2>\n\n\n\n<p>So you have installed OPNsense and can be able to login via web gui but login via ssh is timing out?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh -v root@192.168.10.23<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\nOpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f  31 Mar 2020\ndebug1: Reading configuration data \/etc\/ssh\/ssh_config\ndebug1: \/etc\/ssh\/ssh_config line 19: Applying options for *\ndebug1: Connecting to 192.168.10.23 [192.168.10.23] port 22.\ndebug1: connect to address 192.168.10.23 port 22: Connection timed out\nssh: connect to host 192.168.10.23 port 22: Connection timed out\n<\/code><\/pre>\n\n\n\n<p>Well this is possible because by default, Secure Shell server is not enabled on OPNsense.<\/p>\n\n\n\n<p>To enable SSH server on OPNsense;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>login via web GUI<\/li>\n\n\n\n<li>Navigate to <strong>System &gt; Settings &gt; Administration.<\/strong><\/li>\n\n\n\n<li>Under <strong>Secure Shell<\/strong> section, check <strong>Enable Secure Shell<\/strong><\/li>\n\n\n\n<li>To login as root, check <strong>Permit root user login<\/strong> and if you are using password authentication method, check <strong>Permit password login<\/strong>.<\/li>\n\n\n\n<li>If you want, you can bind SSH to listen on specific interface.<\/li>\n\n\n\n<li>See the screenshot below.<\/li>\n<\/ul>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/08\/enable-SSH-on-OPNsense.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1755\" height=\"848\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/08\/enable-SSH-on-OPNsense.png\" alt=\"How to enable Secure Shell (SSH) server on OPNsense\" class=\"wp-image-16215\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/08\/enable-SSH-on-OPNsense.png?v=1681661981 1755w, https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/08\/enable-SSH-on-OPNsense-768x371.png?v=1681661981 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/08\/enable-SSH-on-OPNsense-1536x742.png?v=1681661981 1536w\" sizes=\"(max-width: 1755px) 100vw, 1755px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>Once you are done , scroll down and click the <strong>save<\/strong> the button to apply the changes.<\/p>\n\n\n\n<p>You can now try to login again via ssh and you should be able to get the ssh login prompt.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@192.168.10.23<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\nThe authenticity of host '192.168.10.23 (192.168.10.23)' can't be established.\nECDSA key fingerprint is SHA256:tv4s9PaG0I9m8MVNLWd4ZO9k1tFL5eNMTg8zM2QwEkI.\nECDSA key fingerprint is MD5:f9:70:91:ed:7e:83:e6:8c:42:af:f1:ae:26:f8:5f:97.\nAre you sure you want to continue connecting (yes\/no)? yes\nWarning: Permanently added '192.168.10.23' (ECDSA) to the list of known hosts.\nPassword for root@OPNsense.localdomain:\n<\/code><\/pre>\n\n\n\n<p>There you go. You have enabled ssh server on OPNsense and can now login via ssh.<\/p>\n\n\n\n<p>That is it on how to enable Secure Shell (SSH) server on OPNsense.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-opnsense-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install OPNsense on VirtualBox<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-reset-or-recover-root-password-on-opnsense\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Reset Or Recover Root Password On OPNsense<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to enable Secure Shell (SSH) server on OPNsense. SSH is one of the defacto secure methods of logging<\/p>\n","protected":false},"author":1,"featured_media":16217,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[34,44,45],"tags":[6532,41,6533,71],"class_list":["post-351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-firewall","category-opnsense","tag-enable-ssh-on-opnsense","tag-opnsense","tag-opnsense-enable-ssh","tag-ssh","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/351"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":20957,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/351\/revisions\/20957"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/16217"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}