Skip to content

Commit

Permalink
Merge pull request #36 from haeringer/docs-rhel-compatibility
Browse files Browse the repository at this point in the history
Ensure compatibility with CentOS/RHEL.
  • Loading branch information
gmazoyer committed Mar 20, 2018
2 parents 68fcc3c + 49cae86 commit 4af491e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/bird.md
Expand Up @@ -38,7 +38,8 @@ root@bird-router ~# su -l lg
lg@bird-router ~# mkdir ~/.ssh/
lg@bird-router ~# echo 'from="lg.example.com,$IP4-OF-YOUR-LG",no-port-forwarding,no-x11-forwarding,no-agent-forwarding ssh-rsa $RSA-PUBKEY-HERE lg@looking-glass' >| ~/.ssh/authorized_keys
# truncate the profile dotfile
# truncate the profile dotfile (Debian-based distributions)
# for CentOS/RHEL, apply the below steps to ~/.bashrc instead
lg@bird-router ~# echo >| ~/.profile
# set up a limited PATH
Expand All @@ -53,7 +54,7 @@ root@bird-router ~# chsh -s /bin/rbash lg
# set up the restricted PATH with the only necessary binaries simlinks
root@bird-router ~# mkdir -p /opt/lg-bin
root@bird-router ~# for cmd in birdc birdc6 ping traceroute; do ln -s $(which $cmd) /opt/lg-bin/; done
root@bird-router ~# for cmd in birdc birdc6 ping ping6 traceroute traceroute6; do ln -s $(which $cmd) /opt/lg-bin/; done
root@bird-router ~#
```

Expand Down

0 comments on commit 4af491e

Please sign in to comment.