<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SSH Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/ssh/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:53:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How To scp, ssh and rsync without prompting for password using OpenSSH</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 07:36:40 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Rsync]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[SSH]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4599</guid>

					<description><![CDATA[<p>Verify that local-host and remote-host is running openSSH ssh -V OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006 Lets say you want [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh/">How To scp, ssh and rsync without prompting for password using OpenSSH</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Verify that local-host and remote-host is running openSSH</strong><br />
<em>ssh -V</em><br />
<em>OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006</em></p>
<p><strong>Lets say you want to copy between two hosts host_src and host_dest. host_src is the host where you would run the scp, ssh or rsyn command, irrespective of the direction of the file copy!</strong><br />
<strong>1.</strong> On host_src, run this command as the user that runs scp/ssh/rsync<br />
$ ssh-keygen -t rsa<br />
This will prompt for a passphrase. Just press the enter key. It&#8217;ll then generate an identification (private key) and a public key. Do not ever share the private key with anyone! ssh-keygen shows where it saved the public key. This is by default ~/.ssh/id_rsa.pub:<br />
Your public key has been saved in &lt;your_home_dir&gt;/.ssh/id_rsa.pub</p>
<p><strong>2.</strong> Transfer the id_rsa.pub file to host_dest by either ftp, scp, rsync or any other method.</p>
<p><strong>3.</strong> On host_dest, login as the remote user which you plan to use when you run scp, ssh or rsync on host_src.</p>
<p><strong>4.</strong> Copy the contents of id_rsa.pub to ~/.ssh/authorized_keys<br />
$ cat id_rsa.pub &gt;&gt;~/.ssh/authorized_keys<br />
$ chmod 700 ~/.ssh/authorized_keys<br />
If this file does not exists, then the above command will create it. Make sure you remove permission for others to read this file. If its a public key, why prevent others from reading this file? Probably, the owner of the key has distributed it to a few trusted users and has not placed any additional security measures to check if its really a trusted user.</p>
<p><strong>5.</strong> Note that ssh by default does not allow root to log in. This has to be explicitly enabled on host_dest. This can be done by editing /etc/ssh/sshd_config and changing the option of PermitRootLogin from no to yes. Don&#8217;t forget to restart sshd so that it reads the modified config file. Do this only if you want to use the root login.</p>
<p><strong>Putty using Windows:</strong></p>
<p>If you are trying using windows, you can use puttygen to generate public/private keys and do the configuration in putty as in image below to connect to other server&#8230;</p>
<p>&nbsp;</p>
<p>PIC TO BE UPLOADED&gt;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Reference.</strong><br />
<a href="http://www.thegeekstuff.com/2008/10/perform-ssh-and-scp-without-password-from-ssh2-to-openssh/" rel="nofollow">http://www.thegeekstuff.com/2008/10/perform-ssh-and-scp-without-password-from-ssh2-to-openssh/</a><br />
<a href="http://blogs.oracle.com/jkini/entry/how_to_scp_scp_and" rel="nofollow">http://blogs.oracle.com/jkini/entry/how_to_scp_scp_and</a><br />
<a href="http://www.thegeekstuff.com/2008/06/perform-ssh-and-scp-without-entering-password-on-openssh/" rel="nofollow">http://www.thegeekstuff.com/2008/06/perform-ssh-and-scp-without-entering-password-on-openssh/</a><br />
<a href="http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html" rel="nofollow">http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh/">How To scp, ssh and rsync without prompting for password using OpenSSH</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is SSH(Secure Shell)</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-sshsecure-shell/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-sshsecure-shell/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 08 Jan 2018 11:22:04 +0000</pubDate>
				<category><![CDATA[Concept & Definition]]></category>
		<category><![CDATA[secure shell]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSH Introduction]]></category>
		<category><![CDATA[SSH Overview]]></category>
		<category><![CDATA[what is secure shell]]></category>
		<category><![CDATA[what is SSH]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4527</guid>

					<description><![CDATA[<p>SSH Secure Shell provides users with a secure, encrypted mechanism to log into systems and transfer files; it can be viewed [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-sshsecure-shell/">What is SSH(Secure Shell)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>SSH Secure Shell provides </strong>users with a secure, encrypted mechanism to log into systems and transfer files; it can be viewed as a secure replacement for FTP.</p>
<p>Developed by SSH Communications Security Ltd., Secure Shell is a program to log into another computer over a network, to execute commands in a remote  machine, and to move files from one machine to another. It provides strong authentication  and secure communications over insecure channels. It is a replacement for rlogin, rsh, rcp, and rdist.</p>
<p>SSH protects a network from attacks such as IP spoofing, IP source routing, and DNS spoofing. An attacker who has managed to take over a network<br />
can only force ssh to disconnect. He or she cannot play back the traffic or hijack the connection when encryption is enabled.</p>
<p>When using ssh&#8217;s slogin (instead of rlogin) the entire login session, including transmission of password, is encrypted; therefore it is almost impossible for an outsider to collect passwords.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-sshsecure-shell/">What is SSH(Secure Shell)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-sshsecure-shell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to get bash or ssh into a running container in background mode?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 23 Feb 2016 11:51:34 +0000</pubDate>
				<category><![CDATA[CONTAINERS]]></category>
		<category><![CDATA[Background]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[mode]]></category>
		<category><![CDATA[Running container]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSH into a Container]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2016/02/23/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode/</guid>

					<description><![CDATA[<p>How to get bash or ssh into a running container in background mode? Step 1: First of all, try to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode/">How to get bash or ssh into a running container in background mode?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img fetchpriority="high" decoding="async" class="wp-image-3196 size-full aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/02/bash-or-ssh-into-a-running-1-1.png" alt="bash-or-ssh-into-a-running-container" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/02/bash-or-ssh-into-a-running-1-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/02/bash-or-ssh-into-a-running-1-1-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div><strong>How to get bash or ssh into a running container in background mode?</strong></div>
<div></div>
<div><strong>Step 1: First of all, try to find your active container by running</strong></div>
<div># docker ps</div>
<div>or</div>
<div># docker ps -a</div>
<div></div>
<div><strong>Step 2: If the container is not running,</strong></div>
<div># docker start your_id</div>
<div></div>
<div><strong>Step 3: If we use attach we can use only one instance of shell.</strong></div>
<div># sudo docker attach 665b4a1e17b6 #by ID</div>
<div>or</div>
<div># sudo docker attach loving_heisenberg #by Name</div>
<div></div>
<div>If we want open new terminal with new instance of container&#8217;s shell, we just need run the following:</div>
<div># sudo docker exec -i -t 2e56ad1705b1 /bin/bash #by ID</div>
<div>or</div>
<div># sudo docker exec -i -t loving_heisenberg /bin/bash #by Name</div>
<div># root@665b4a1e17b6:/#</div>
<div></div>
<div><strong>Step 4: To exit bash without leaving bash running in a rogue process</strong></div>
<div># exit</div>
<div></div>
<div><strong>Notes:</strong></div>
<div>A reminder for boot2docker users: remove sudo</div>
<div>If you are using docker in Linux, you will have to use sudo along with docker commands.</div>
<div>You should try not to run commands as sudo, rather add your user to the docker group and just run normally.</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode/">How to get bash or ssh into a running container in background mode?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</title>
		<link>https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/</link>
					<comments>https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 14 Oct 2015 11:10:37 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Remote machine]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSH Login]]></category>
		<category><![CDATA[SSH Login Without Password]]></category>
		<category><![CDATA[ssh-copy-id]]></category>
		<category><![CDATA[ssh-keygen]]></category>
		<category><![CDATA[Steps]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/10/14/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/</guid>

					<description><![CDATA[<p>Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id Step 1: Generate the keys &#62; ssh-keygen or &#62; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/">Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img decoding="async" class="aligncenter wp-image-3069 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/ssh-login-without-password.png" alt="SSH Login Without Password" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/ssh-login-without-password.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/ssh-login-without-password-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div><strong>Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</strong></div>
<div></div>
<div><strong>Step 1: Generate the keys</strong></div>
<div>&gt; ssh-keygen</div>
<div>or</div>
<div>&gt; ssh-keygen -t rsa</div>
<div></div>
<div><strong>Step 2: Copy the public key to remote machine</strong></div>
<div>&gt; ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host</div>
<div>or</div>
<div>&gt; ssh-copy-id -i ~/.ssh/id_rsa.pub user@hostname.example.com</div>
<div></div>
<div>Alternatively, you can paste in the keys using SSH:</div>
<div>cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 &#8220;mkdir -p ~/.ssh &amp;&amp; cat &gt;&gt;  ~/.ssh/authorized_keys&#8221;</div>
<div></div>
<div><strong>Step 3: Login to remote machine</strong></div>
<div>&gt; ssh remote-host</div>
<div></div>
<div>If you have loaded keys to the ssh-agent using the ssh-add, then ssh-copy-id will get the keys from the ssh-agent to copy to the remote-host. i.e, it copies the keys provided by ssh-add -L command to the remote-host, when you don’t pass option -i to the ssh-copy-id.</div>
<div></div>
<div>&gt; ssh-add</div>
<div>&gt; ssh-add /Users/rajesh.kumar/.ssh/id_rsa</div>
<div></div>
<div><strong>Step 4: Optional Step Four—Disable the Password for Root Login</strong></div>
<div></div>
<div>&gt; sudo nano /etc/ssh/sshd_config</div>
<div>Put the changes into effect:</div>
<div>&gt; reload ssh</div>
<div></div>
<div>Within that file, find the line that includes PermitRootLogin and modify it to ensure that users can only connect with their SSH key:</div>
<div>&gt; PermitRootLogin without-password</div>
<div></div>
<div><strong>More Articles</strong></div>
<div><a href="http://community.scmgalaxy.com/blog/view/40844/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh">http://community.scmgalaxy.com/blog/view/40844/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh</a></div>
<div><a href="http://manpages.ubuntu.com/manpages/lucid/man1/ssh-copy-id.1.html">http://manpages.ubuntu.com/manpages/lucid/man1/ssh-copy-id.1.html</a></div>
<div>
<p><a href="Forum/34-shell-script/501-file-copying-and-transfer-between-two-machine.html">http://www.scmgalaxy.com/Forum/34-shell-script/501-file-copying-and-transfer-between-two-machine.html</a></p>
</div>
<div></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/">Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to configure and use SSH authentication system server CVS</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-configure-and-use-ssh-authentication-system-server-cvs/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-configure-and-use-ssh-authentication-system-server-cvs/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 20 Apr 2010 12:19:22 +0000</pubDate>
				<category><![CDATA[CVS]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Configure CVS with SSH]]></category>
		<category><![CDATA[CVS with SSH Configuration]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Setup CVS through SSH]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[System server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Use SSH with CVS]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/04/20/how-to-configure-and-use-ssh-authentication-system-server-cvs/</guid>

					<description><![CDATA[<p>How to configure and use SSH authentication system server CVS cvs (Concurrent Version System) is a very popular version control [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-configure-and-use-ssh-authentication-system-server-cvs/">How to configure and use SSH authentication system server CVS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-4374" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/ssh-authentication-system-s.png" alt="ssh-with-cvs" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/ssh-authentication-system-s.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/ssh-authentication-system-s-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to configure and use SSH authentication system server CVS</strong></p>
<p>cvs (Concurrent Version System) is a very popular version control tool. Although its function as Perforce, Subversion and other powerful, but because of its easy configuration, simple to use and the introduction of longer, so in all a kind of software project widely used.</p>
<p>first is to install FreeBSD, and application security patches. This step is very simple, download a FreeBSD (the upcoming 5.2-RELEASE is a good choice, in this article was published, this version may have been able to download a) of the mini iso burning CD-ROM, then you can install the (choose “Minimum” installation). Note that, in order to be able to use ssh authentication, be sure to install the crypto. Configure the network for this machine, so after the restart just fine.</p>
<p>then install the necessary package. FreeBSD 4.x built-in perl, but in 5.x in, perl be deleted from the basic system. In order to better use, including ACL, commit mail, and a number feature, you must install perl.</p>
<p>I personally recommend using the ports in the 5.8.x version of perl. Before installing, first of all convinced that the system does not perl 5.6.x installed, the new system, they can safely execute the following command:</p>
<p>This will remove the existing any package. In general, the majority of FreeBSD users use cvsup to update the system, but the release of the CD, cvsup-without-gui is not included, while the ordinary cvsup package requires a series of X11 libraries. To avoid trouble, consider the following two different ways to complete the first code update:</p>
<div></div>
<p><strong>1, using the FreeBSD&#8217;s cvs to synchronize code: </strong></p>
<p>cvs-d: pserver: anoncvs@anoncvs.jp.FreeBSD.org: / home / ncvs login</p>
<p>enter “anoncvs”, Enter</p>
<p>cd / usr</p>
<p>cvs-R-d: pserver: anoncvs@anoncvs.jp.FreeBSD.org: / home / ncvs export-r RELENG_5_2 src ports</p>
<p>Note: If you are not using 5.2-RELEASE, please make appropriate amendments to RELENG_5_2 (for example ,4-STABLE is RELENG_4, – CURRENT is the HEAD, etc.)</p>
<p><strong>2, install cvsup-without-gui: </strong></p>
<p>pkg_add-r cvsup-without-gui</p>
<p>then use cvsup to synchronize code, space is limited, I will not repeat them</p>
<p>I recommend the first method, of course, the second method should be faster, and does not require manually compiling cvsup. Subsequently, the installation of Perl 5.8.x:</p>
<p>cd / usr / ports / lang / perl5.8 &amp; &amp; make all install clean &amp; &amp; rehash</p>
<p>Then we will face a very serious problem: ports inside use.perl script does not know the system had not installed perl, so the time to be wrong in the implementation – this time, just make a symbolic link to perl on it. Well, the implementation:</p>
<p>use.perl port</p>
<p>This script will help you complete use.perl modify configuration files (such as / etc / make.conf) and a series of work. Here is not the table, a little profile about OpenSSH (sshd) configuration, in general, add the following two lines:</p>
<p><strong>Protocol 2 </strong></p>
<p><strong>PasswordAuthentication no </strong></p>
<p>the benefits of doing so: ( 1) only allow ssh2 protocol log, which can provide better security (2) does not allow password login, which no doubt will increase security.</p>
<p><strong>1, create a cvs repository </strong></p>
<p>Well, pre-configuration is basically over. Do not forget to create a user for the cvs group, for example, ncvs, as well as a cvs repository for the management of users, such as the repoman (which of course is ncvs that group), and then create a directory to save the cvs repository, in this case , we put it into / home / ncvs in:</p>
<p>rm-rf / home / ncvs</p>
<p>mkdir-p / home / ncvs</p>
<p>chown-R repoman: ncvs / home / ncvs</p>
<p>chmod-R 775 / home / ncvs</p>
<p>next step is to initialize the repository, and simple to implement:</p>
<p>su-l repoman</p>
<p>cvs-d / home / ncvs init</p>
<p>on it.</p>
<p>present, all the FreeBSD version of cvs are included in the safety of the existence of a small vulnerability, although this flaw only in local use, but we recommend that you put it back on is to find / usr / src / contrib / cvs / src / expand_path.c in</p>
<p>return current_parsed_root-&gt; original;</p>
<p>line, turning it into a</p>
<p>return current_parsed_root-&gt; directory;</p>
<p>Of course, the next step is to re-make world kernel of. Need to note is that if you are using a 5-CURRENT, also need to modify some code for it to reach 5.2-RELEASE as performance (-CURRENT in a large number of debugging options turned on), specific methods will not go into here.</p>
<p><strong>2, the configuration commitmail and ACL </strong></p>
<p>then configure cvs commitmail and ACL. I personally think that commitmail the team software development a very important thing to cvs, it is especially important because cvs is not atomic submit function, but commitmail just enough to make up for this.</p>
<p>FreeBSD development team used a very good perl script to complete commitmail function, while the hook they use cvs to achieve a simple access control function (ACL). I use the cvs repository based on FreeBSD&#8217;s CVSROOT, and made a few changes.</p>
<p>use the CVSROOT cover your CVSROOT, and you also need to freebsd directory mailsend.c which compiled the results into the / usr / local / bin (the script assumes that the CVSROOT in this matter). In addition, the CVSROOT need some modifications before it is put into use (for example, machine name, etc.). These settings can be found in the cfg_local.pm inside:</p>
<p>$ MAILADDRS = &#8216;cvs- all@example.org &#8216;;</p>
<p>commitmail this is the place to be sent to.</p>
<p>$ MAIL_BRANCH_HDR = “X-Phantasm-CVS-Branch”;</p>
<p>this is to be added to the commitmail head of information, if you use the mailing list, then it can help mailing list automatically sorted.</p>
<p>$ MAILBANNER = “The Phantasm Studio repository”;</p>
<p>this soon in commitmail said that they commit to which a repository.</p>
<p>if ($ hostname = ~ / ^ cvs \. Example \. Org $ / i)</p>
<p>commit to this is to determine the host name</p>
<p>$ CVSWEB_URL = “http://cvsweb.example.org/cgi-bin/cvsweb.cgi”;</p>
<p>This is cvsweb services at</p>
<p>a brief CVSROOT in the other documents</p>
<p>avail: the file used to control access to user group.</p>
<p>access: This file is used to control who can perform cvs operations.</p>
<p>exclude: This file is used to control those files do not need to check the cvs tag</p>
<p>options: this file used to control the commencement of cvs tag, for example, can define $ Phantasm $, etc.</p>
<p><strong>3, configuration of users and restrict ssh permissions </strong></p>
<p>ssh authentication using a more vexing question is, ssh means that users have a system account, and that they be able to log in.. If configured properly, they can get a shell, it is natural to be a potential security risk.</p>
<p>must therefore be very careful in handling the ssh cvs authentication issue. The underlying principle is: any action against the user, unless we allow them to do so.</p>
<p>create a user in accordance with the following rules:</p>
<p>user&#8217;s” primary “group is ncvs (This will not only restrict the user&#8217;s permission, so we can more easily control the other users in the cvs repository which can not be free to commit)</p>
<p>users do not use password authentication, which will ease because they do not properly set up ftp and other safety hazards caused by</p>
<p>still give the user a shell, the “shell” can be a perl script, it only allow the implementation of the beginning of the command cvs</p>
<p>then allow users to use openssh&#8217;s ssh-keygen to generate your own key pair. OpenSSH in most * BSD and Linux distributions can be found in, if the user uses the Windows Desktop, you need to install cygwin (in particular, the installation of net in OpenSSH), of course, the implementation of the command is the same:</p>
<p>ssh-keygen-t dsa-b 2048</p>
<p>for the paranoid security enthusiasts, can consider later in 2048 will be replaced by-b 4096. Of course, under the barrel theory, if you are a paranoid, then obviously you should be forced to use all the partners are also at least as long as your key:)</p>
<p>, the administrator should be user (committer) the key into the server, the user corresponding to the authorized_keys file in the folder inside. For example, one of my public key as follows:</p>
<p>ssh-dss AAAAB3NzaC1kc3MAAAEBAL +1 jinOw +86 RcTEaSM5/Hz4Lr9tIS0IQsX8ebo</p>
<p>TwLzWnqpOHRh2KBCGn/e0xGCIAai7PGz7c + SZCvrLiRvG9mCsMMMue8ZIL + QF4OAmMd</p>
<p>Cz8Qoyg0cc4YXImOd + UEpdOX29PC4aMAz28v/GO2yf58/Qa49Clfq1kHa/8q3IAgs9o</p>
<p>W95 / ArG + IWFOsN1Tv9nh4XJb5AQjpa5uMlB5SEmvKGTXQ2oYiRVIxL8vzHL6MtO/8×1</p>
<p>j8 + RioSH6FCpEXS7UJbYxE7vF3m5Fa5o6g2dIZewphsleOeHkvYJ442Hqvsly3p4 +4 N</p>
<p>dvim4bY2HMDha5r5zeTV8tTlOz4wQVgKyWoEAAAAVAINGzX7uU0vR8l63qhBhUeWGZt</p>
<p>C9AAABADWiO +9 bvV7DApsn08LR1eoEnMjJFQgEfGlbV + EvZHkO0bkHZAdRIKtVmgNUw</p>
<p>G6uufykkt2Tb + q5SbVNZkzeaFVv4ZMtnjSvEPIZrEXcQFFguGk1it5v5EYcmq4G8 + j1</p>
<p>BFTVHef4b1wMTSt11WtEz0LUYncuZ6LA48/WGTuZiSm8JkchgVm8HhR9NqjdeFJH8sO</p>
<p>RUhUBoxyWjo/hv7zFg7HqoJGzeNfrEhFg36psR2RDaRvSP0vN1W2q4j5OZy3gB6ZyVt</p>
<p>nsEPl1HELhlaCFifmdz1LVxDx + FyPy6wMsPQLTmB1g6N1J6PWy3qCTJ0NyQgarSt3 / A</p>
<p>TQ0InF1BOdJn8QAAAEAPb1OgswuMHdEsHk2ETZVmOKOkI9Rjf72vjZ3xG45iEbCH/7p</p>
<p>aTP8OQmJMW9FD4MHjdmtktPVYXDIa9Hj/IM44zhfMHEdKs9LlFUK5dBgNUps + yPj2Ns</p>
<p>Mr2rl771ODR0mB52FwrXm1FCmNTM7WQpFOEy/QhtZRpHK +7 / YZp7PBggt17Fw7rbjP2</p>
<p>zhWnZluoSKLgvfkhxhJuOMm/ElNJx2c + XHdxPqI3eR5UxzLNjDUNh59I8 + h + E69bFB3</p>
<p>b2uhKqziziHOQcqoH5r0Kud / DBBE79lU3mRUF8FQNygCRh/V3yFzed40rc0nF0PQpNZ</p>
<p>6zodDTJByrm6vX5wr2lI4RgA9w == bitripper@grimreaper.delphij.net</p>
<p>Description: public key is not allowed off-line, here is convenient for typesetting. We have just opened to the user shell, which is still potential pitfalls, so we tighten security in this regard, the public key by adding the following text before the project:</p>
<p>command = “/ usr / bin / cvs – allow-root = / home / ncvs server”</p>
<p>So, the whole line should look like this:</p>
<p>command =” / usr / bin / cvs – allow-root = / home / ncvs server “ssh-dss AAAAB</p>
<p>…… …………………..</p>
<p>X5wr2lI4RgA9w == bitripper@grimreaper.delphij.net</p>
<p>ssh this command means that up on the implementation of / usr / bin / cvs – allow-root = / home / ncvs server this command, and can only perform this command. Thus, unless there are loopholes in the cvs itself, otherwise, can not really cut out through ssh shell. – Allow-root limits the ability to use the repository, so users can not easily specify the other repository, thus trying to undermine the security will become more difficult. If you need multiple repository, you can specify the number of allow-root parameter.</p>
<p>be noted is that if users have multiple public key, you need to specify each public key before the command.</p>
<p><strong>4, configuration cvsweb </strong></p>
<p>configuration cvsweb is quite simple. First install the apache (I tried 1.3.x and 2.0.x), configure the ready, from the port which install cvsweb on it:</p>
<p>cd / usr / ports / devel / cvsweb &amp; &amp; make all installl clean</p>
<p>and then to modify it configuration file:</p>
<p>cd / usr / local / etc / cvsweb</p>
<p>vi cvsweb.conf</p>
<p>find</p>
<p>;</p>
<p>@ CVSrepositories = (</p>
<p>line, follow the example of an increase in following their own repository, For example:</p>
<p>&#8216;ncvs&#8217; =&gt; [&#8216; New CVS Repository &#8216;,&#8217; / home / ncvs&#8217;],</p>
<p>write the number of how many, of course, @ CVSrepositories the first to directly access cvsweb.cgi when the repository.</p>
<p>in FreeBSD 5.1-CURRENT development process carried out by some of the changes caused by the ports in the cvsweb not normally call the cvs and rcs tools, which will cause it to not work properly. To solve this problem, can be found from the following web site the latest version of cvsweb:</p>
<p>http://www.freebsd.org/projects/cvsweb.html</p>
<p>the author of this writing, the latest cvsweb version is 2.9.1 beta. Before the installation, need to install the other two port:</p>
<p>cd / usr/ports/devel/p5-IPC-Run &amp; &amp; make all install clean</p>
<p>cd / usr/ports/net/p5-URI &amp; &amp; make all install clean</p>
<p>then downloaded tbz file unpack, copy to the appropriate location (cgi-bin and related images directory) can be used.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-configure-and-use-ssh-authentication-system-server-cvs/">How to configure and use SSH authentication system server CVS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-configure-and-use-ssh-authentication-system-server-cvs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
