How to run two codes of snippets in one time in ssh terminal
Forgive my laziness, I don't want to enter the "ssh node1" and "****" (Password) each time.
So I make a snippet. It is well if I run two snippets for each has one code like: snippet1 Code:
ssh node1 Code:
**** snippet Code:
ssh node1 Ps: I use the mobile, which application is Juicessh |
Quote:
Juicessh might not have this function, but plain vanilla openssh allow you to connect with a key rather than a password. Google for "ssh logon key" or similar; http://linuxproblem.org/art_9.html has instructions that look good. Once you have set up your keys on server and client, no password is needed anymore. |
Quote:
|
For other readers not in an Android environment, you could use the "expect" package to provide the same functionality as typing the password ahead (which ssh will not let you do). However, using a key is much better practice.
|
All times are GMT -5. The time now is 03:57 AM. |