# expect **Repository Path**: kimono/expect ## Basic Information - **Project Name**: expect - **Description**: Expect is an automatized interaction suite. Write some useful scripts. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-08 - **Last Updated**: 2022-04-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ssh-without-password use 'expect' and some scripts to acheive: * ssh without password * modify password ## environment expect, for ubuntu use `sudo apt install expect` ## command > ssh without password 1. write down ip list in a txt file, e.g. `ip.txt` 2. modify some parameters in `ssh-copy-id.sh`, i.e., `user` and `password` for ssh login 3. run script with `bash ssh-copy-id.sh ip.txt` > modify password Same as above, modify parameters in `password.sh` ## others if no rsa key is generated, you can type: `ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""` to generate a rsa ssh key