Viet's Blog

Ssh

Securely Publish Hugo via rsync

  • Jun 4, 2017
  • POST
Steps 1. Install rssh Install rssh to limit shell activity for users using the shell rssh: sudo apt-get install rssh Now edit the config file /etc/rssh.conf to allow scp and rsync: allowscp allowrsync #allowsftp #allowcvs #allowrdist #allowsvnserve NOTE: Since you are going through SSH, you don’t need to enable firewall rule for rsync. # DO NOT RUN this: sudo ufw allow rsync # You can safely run this: $ sudo ufw delete allow rsync 2.

How to Install a Git Repo & Serve via SSH

  • Jun 4, 2017
  • POST
Love Git but don’t want to pay GitHub to have a private repo? No problem. Here’s the solution. I was looking for a way to create a repo and serve it on my server via ssh. Git made it really simple and we can do in 3 steps (copied from the Reference 1): Steps 1. Create a repo # On the server side mkdir ~/repos/ cd ~/repos/ GIT_DIR=project.git git init cd project.

Got Locked Out From Gitolite

  • May 1, 2017
  • POST
A couple of years ago I installed gitolite to self-host Git and access it via SSH. All was well until recently I discovered a problem: I could not access some repositories: $ git clone git@simpleit.us:apache2-config.git Cloning into 'apache2-config'... R access for apache2-config DENIED to gitadmin (Or there may be no repository at the given path. Did you spell it correctly?) fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
LATESTS
Make Grub Font Size Bigger
  • Sep 22, 2019
  • POST
Endianness Agnostic ntoh
  • Jun 22, 2019
  • POST
Upcoming Posts
  • Jun 15, 2019
  • POST
Taming Elementary OS
  • May 11, 2019
  • POST
Fix Wifi for Ubuntu on Microsoft Surface
  • May 11, 2019
  • POST
Endianness Detection the Hard Way
  • Jun 17, 2018
  • POST
OCaml Packaging With Topkg and OPAM
  • May 28, 2018
  • POST
Safer C++ By Handling Function Result
  • May 12, 2018
  • POST
P2P Browsing Web With Beaker and Dat
  • Mar 31, 2018
  • POST
Edit and Annotate PDF
  • Mar 30, 2018
  • POST
CATEGORIES
TAGS
  • dev
  • tips
  • ubuntu
  • hugo
  • blog
  • c++
  • config
  • git
  • security
  • social-media

© Viet's Blog

Powered by Hugo.

Robust designed by Daisuke Tsuji.