<?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>Alexey Bokov's weblog &#187; ssh</title>
	<atom:link href="http://bokov.net/weblog/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://bokov.net/weblog</link>
	<description>Anything that interests me</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:32:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Moving git repo from github to another location with ssh access</title>
		<link>http://bokov.net/weblog/project-managment/moving-git-repo-from-github-to-another-location-with-ssh-access/</link>
		<comments>http://bokov.net/weblog/project-managment/moving-git-repo-from-github-to-another-location-with-ssh-access/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 08:49:10 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project managment]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=333</guid>
		<description><![CDATA[We have git repo at github (  and would like to move onto some our corporate box inside our network, for example on internal.bokov.net. This repository is shared for group of developers and all who have ssh access onto internal.bokov.net shall have right to commits onto git repository. So first of all prepare place for [...]]]></description>
			<content:encoded><![CDATA[<p>We have git repo at github (  and would like to move onto some our corporate box inside our network, for example on internal.bokov.net. This repository is shared for group of developers and all who have ssh access onto internal.bokov.net shall have right to commits onto git repository. So first of all prepare place for git repo at new hosting :<br />
<code><br />
ssh user@internal.bokov.net<br />
cd var<br />
mkdir git_repo<br />
chmod 777 git_repo<br />
cd git_repo<br />
mkdir my_project<br />
cd my_project<br />
git init --bare --shared=all<br />
cd objects<br />
chmod g+ws *<br />
</code></p>
<p>Next clone existing repo and change its settings to point onto internal.bokov.net<br />
<code><br />
git clone --bare git@github.com:bokov/github_project.git<br />
git remote add -t master -m master origin ssh://internal.bokov.net/var/git_repo/my_project/<br />
git push origin master<br />
</code></p>
<p>to start work with new repo just use<br />
<code><br />
git clone ssh://internal.bokov.net/var/git_repo/my_project/<br />
</code></p>
<p>have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/project-managment/moving-git-repo-from-github-to-another-location-with-ssh-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu usefull tips</title>
		<link>http://bokov.net/weblog/administration/add-user-to-ubuntu/</link>
		<comments>http://bokov.net/weblog/administration/add-user-to-ubuntu/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:03:38 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[stuff]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=328</guid>
		<description><![CDATA[Ubuntu doesn&#8217;t asking for login after boot up ( may happen after unexpected shutdown ) : press Ctrl-Alt-F1 to login in terminal mode and use fsck to fix it Add user short memo : [root@my-box ~]# useradd -g users -u 560 tuser [root@my-box ~]# passwd tuser ps. sudo will be required in not-root case Proper [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Ubuntu doesn&#8217;t asking for login after boot up ( may happen after unexpected shutdown ) :<br />
press Ctrl-Alt-F1 to login in terminal mode and use fsck to fix it
</li>
<p></p>
<li>Add user short memo :<code><br />
[root@my-box ~]# useradd -g users -u 560 tuser<br />
[root@my-box ~]# passwd tuser<br />
</code><br />
ps. sudo will be required in not-root case <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</li>
<p></p>
<li> Proper access rights for .ssh files :<code><br />
chmod 700 ~/.ssh<br />
chmod 600 ~/.ssh/id_rsa<br />
chmod 644 ~/.ssh/id_rsa.pub<br />
chmod 644 ~/.ssh/authorized_keys<br />
chmod 644 ~/.ssh/known_hosts<br />
</code>
</li>
<p></p>
<li> List all files in folder sorted by size :  <code><br />
find . -type f -exec  du -k "{}" \; | sort -n<br />
</code>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/add-user-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

