<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSH Restrict of Direct Root Login in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723284#M21636</link>
    <description>Shalom Pawan,&lt;BR /&gt;&lt;BR /&gt;So you are saying prior to setting that variable in sshd_config password free access worked?&lt;BR /&gt;&lt;BR /&gt;If unsure, please set it back to default and re-test. Also I reccomend checking the ownerhip and permissions of the users home directory to see if something got messed up.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 02 Feb 2006 14:12:34 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-02-02T14:12:34Z</dc:date>
    <item>
      <title>SSH Restrict of Direct Root Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723283#M21635</link>
      <description>Am trying to disable direct root login to the servers, but allow them to scp or sftp using keys from an authorised server. Somehow when the variable in sshd_config "PermitRootLogin forced-commands-only" is set, it does not allow remote executions of command also and keeps on asking for password. Has anyone implemented the same without specifying which commands to execute ? Thanks</description>
      <pubDate>Thu, 02 Feb 2006 12:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723283#M21635</guid>
      <dc:creator>Pawan_1</dc:creator>
      <dc:date>2006-02-02T12:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Restrict of Direct Root Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723284#M21636</link>
      <description>Shalom Pawan,&lt;BR /&gt;&lt;BR /&gt;So you are saying prior to setting that variable in sshd_config password free access worked?&lt;BR /&gt;&lt;BR /&gt;If unsure, please set it back to default and re-test. Also I reccomend checking the ownerhip and permissions of the users home directory to see if something got messed up.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 02 Feb 2006 14:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723284#M21636</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-02-02T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Restrict of Direct Root Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723285#M21637</link>
      <description>Check this page, it may help you and give you some additional tips about how to configure forced-commands-only:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.jdmz.net/ssh/" target="_blank"&gt;http://www.jdmz.net/ssh/&lt;/A&gt;</description>
      <pubDate>Thu, 02 Feb 2006 14:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723285#M21637</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-02-02T14:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Restrict of Direct Root Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723286#M21638</link>
      <description>Hi.&lt;BR /&gt;Sorry for the confusion:&lt;BR /&gt;&lt;BR /&gt;-We want to restrict "root" account to login only from the console.&lt;BR /&gt;-For that we modified the file ssd_config to add : PermitRootLogin forced-commands-only&lt;BR /&gt;&lt;BR /&gt;This helped us prevent the direct login's. But now from our trusted system, we cannot issue commands scp / sftp with root login's as its asking for password.</description>
      <pubDate>Thu, 02 Feb 2006 14:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723286#M21638</guid>
      <dc:creator>Pawan_1</dc:creator>
      <dc:date>2006-02-02T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Restrict of Direct Root Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723287#M21639</link>
      <description>Thanks that will help.</description>
      <pubDate>Thu, 02 Feb 2006 14:26:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723287#M21639</guid>
      <dc:creator>Pawan_1</dc:creator>
      <dc:date>2006-02-02T14:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Restrict of Direct Root Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723288#M21640</link>
      <description>Well followed the Article and have configured "rsync" to work with the forced-commands-only option.Here is the how the file looks like:&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;case "$SSH_ORIGINAL_COMMAND" in&lt;BR /&gt;         *\&amp;amp;*)&lt;BR /&gt;                echo "Rejected"&lt;BR /&gt;                ;;&lt;BR /&gt;        *\(*)&lt;BR /&gt;                echo "Rejected"&lt;BR /&gt;                ;;&lt;BR /&gt;        *\{*)&lt;BR /&gt;                echo "Rejected"&lt;BR /&gt;                ;;&lt;BR /&gt;        *\;*)&lt;BR /&gt;                echo "Rejected"&lt;BR /&gt;                ;;&lt;BR /&gt;        *\&amp;lt;*)&lt;BR /&gt;                echo "Rejected"&lt;BR /&gt;                ;;&lt;BR /&gt;        *\`*)&lt;BR /&gt;                echo "Rejected"&lt;BR /&gt;                ;;&lt;BR /&gt;        rsync\ --server*)&lt;BR /&gt;                $SSH_ORIGINAL_COMMAND&lt;BR /&gt;                ;;&lt;BR /&gt;        &lt;BR /&gt;        *)&lt;BR /&gt;                echo "Rejected"&lt;BR /&gt;                ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;--Now I want to include "scp" and "sftp" also in this file and the question is what should be the string. I have tried different comninations in this file and it does not work.</description>
      <pubDate>Fri, 03 Feb 2006 12:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723288#M21640</guid>
      <dc:creator>Pawan_1</dc:creator>
      <dc:date>2006-02-03T12:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Restrict of Direct Root Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723289#M21641</link>
      <description>SCP and SFTP are built-in functionality.&lt;BR /&gt;Look at the options for the key file. &lt;BR /&gt;&lt;BR /&gt;Try using scp -v  and sftp -v to see what&lt;BR /&gt;is happening.  It looks like scp is &lt;BR /&gt;invoked as a command, and sftp as a subsystem.&lt;BR /&gt;You may need separte keys for these two&lt;BR /&gt;functionalities.  &lt;BR /&gt;</description>
      <pubDate>Mon, 06 Feb 2006 11:16:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-restrict-of-direct-root-login/m-p/3723289#M21641</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2006-02-06T11:16:13Z</dc:date>
    </item>
  </channel>
</rss>

