Shell automatically enters verification information

Source: Internet
Author: User

In Linux, It is very troublesome to use ruijie. After installing myxrgsu, you must enter your account and password every time you use it. This process is too cumbersome. So I want to find a way to automatically enter the password and other information to automatically verify the logon. CT scripts are a good choice.

First install keep CT:

Sudo apt-get install verify CT

#! /Usr/bin/CT

Spawn sudo myxrgsu-d

Wrong CT "pass :"
Send "XXX \ r"
# XXX your Linux administrator password

Reverse CT "Please * name :"
Send "YYY \ r"
# YYY: Your ruijie account

Keep CT "Please * password :"
Send "ZZZ \ r"
# ZZZ your password

CT "Use * (Default: 0 ):"
Send "0 \ r"

Interact

CT eof

Save the preceding script as ruijie. sh, and then click this script.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.