Overclock.net - An Overclocking Community - View Single Post - Bash script waiting for input

View Single Post
post #1 of (permalink) Old 07-09-2016, 08:14 PM - Thread Starter
New to Overclock.net
TLCH723's Avatar
Join Date: Nov 2010
Location: NYC, NY
Posts: 827
Rep: 31 (Unique: 28)
Hi, I have couple places I need to ssh into twice that usually go something like this.
ssh [email protected]
Enter password
Use Yubikey
ssh [email protected]

address2 can be different depend on the server I want to ssh into.
So I was thinking I write a bash script for each of the server but I am not sure if I can use it since I will need to enter password and yubikey.

Thank you.

Canon T3i/600D | EF-S 18-55mm f/3.5-5.6 IS II Lens | EF-S 55-250mm f/4-5.6 IS II Lens | Tokina AT-X 116 PRO DX-II 11-16mm f/2.8 Lens | Sigma 50mm f/1.4 DG HSM Lens ART
YongNuo YN568EX | 2 x YN622C

Nikon FG | 50mm f/1.8 Series E

TLCH723 is offline