<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ssh Keys on Amit Agarwal Linux Blog</title>
    <link>/tags/ssh-keys/</link>
    <description>Recent content in Ssh Keys on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 04 Mar 2015 00:34:21 +0000</lastBuildDate>
    
	<atom:link href="/tags/ssh-keys/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>ssh authorized keys – limit ssh session to custom command</title>
      <link>/2015/03/04/ssh-authorized-keys-limit-ssh-session-custom-command/</link>
      <pubDate>Wed, 04 Mar 2015 00:34:21 +0000</pubDate>
      
      <guid>/2015/03/04/ssh-authorized-keys-limit-ssh-session-custom-command/</guid>
      <description>&lt;p&gt;If you want a ssh key to be able to run a custom command only and nothing beyond that, then you can use the “command” option in the authorized_keys file of ssh.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;For example, to limit user to run only top command with a key, you can add the key like this:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;echo &#39;command=&#34;/usr/bin/top&#34; ssh-rsa &#39; &amp;gt;&amp;gt;~/.ssh/authorized_keys&lt;/pre&gt;</description>
    </item>
    
  </channel>
</rss>
