Add a new host for the Jumpserver

1. Click on the list of assets -> Create assets
have filled network ip network, did not fill in all the public
choose to manage user
selects a node

2. Authorizing -> select User -> asset or group of assets -> Add Assets

3. Log host,
create an administrative user: useradd jumpserver-admin
users to generate a private key: su jumpserver-ADMIN
SSH-keygen -t rsa
been completed Enter generate
the public key file to replace
cd ~ / .ssh
modify public key file name : mv id_rsa.pub authorized_keys
modify permissions chmod 600 authorized_keys public key
of the account were authorized sudo:
echo "jumpserver-ADMIN ALL = (ALL) NOPASSWD: ALL"> /etc/sudoers.d/jumpserver-admin
modify the system user password expiration web time
the chage -M 99999 Web
the chage -M 99999 jumpserver-ADMIN
View user expiration time list: chage -l web

4. Asset Management -> User: Push

Guess you like

Origin www.cnblogs.com/cx850116/p/11225798.html