GithubHelp home page GithubHelp logo

xuanfei2046 / logswitch Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 3.82 MB

面向非系统管理员的日志实时查看工具

Home Page: http://github.com/xuanfei2046/logswitch

License: GNU General Public License v2.0

C 89.32% C++ 0.05% Shell 10.63%

logswitch's Introduction

#********************
#install step:
#********************

# 1 check configure
mkdir /usr/local/cssh
./configure --prefix=/usr/local/cssh

# 2 complie 
make

# 3 install 
make install

# 4 add $prefix(/usr/local) to PATH
#edit /etc/profile
#add "export $PATH=$PATH:/usr/local/cssh/bin"
echo "export $PATH=$PATH:/usr/local/bin" >> /etc/profile
source /etc/profile

#-------------------
#init step:
#-------------------
sudosh -i

#-------------------
#add user step:
#-------------------
#edit /home/$user/.bashrc
#echo "/usr/local/bin/sudosh;exit;" >> /home/$user/.bashrc
echo "sudosh;exit;" >> /home/$user/.bashrc

#-------------------
#config file:
#-------------------
#cssh RSA IdentityFile ---> ~/.cssh/id_rsa
chmod 700 ~/.cssh
chmod 600 ~/.cssh/id_rsa

#comnitty configure ---> ~/.omnittyrc
cat /home/$user/.omnittyrc
[test1]
192.168.1.1 -l root 
192.168.1.2 -p 2222
[email protected] -p 2046
#192.168.1.4
[test2]
#192.168.2.1
192.168.2.2

#edit ssh's command 
vim /usr/local/cssh/etc/cssh_command_allow
vim /usr/local/cssh/etc/cssh_command_deny

#********************
#Auditing
#********************
sudosh-replay 
tail ~/cssh.log

#Bug Report
E-mail: xuanfei2046[at]gmail.com
http://github.com/xuanfei2046/logswitch


logswitch's People

Contributors

xuanfei2046 avatar

Stargazers

 avatar Hailin, Zeng avatar LiuTaihua avatar  avatar yeti avatar

Watchers

 avatar

Forkers

911csj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.