su
part is undermining my question. Becauase ec2-user@$host accepts SSH via private key but some-user@h$ost only accepts password auth. This may be undesirable but please take this as prerequisite. 11:58
@jesse_b Sorry for my slow reply. Well, skipping
I rewrote my qustion and hope this make sense.
What I want to do is:
- I have 10 or more different old servers to manage and I want my daily routine automated.
- It is to a.SSH to ec2-uesr@remotehost, b.su to some-user, c. execute some scripts (e.g. cd, defining some func and alias ) and d.maintain the SSH session in an interactive shell.
why not SSH directly to some-user? is:
- ec2-user@$host accepts SSH via private key and I have the key on my jump server.
- But, some-user@$host doesn't accept SSH via private key but only via password(This is undesirable but please take this as prerequi…
What I want to do is:
- I have 10 or more different old servers to manage and I want my daily routine automated.
- It is to a.SSH to ec2-uesr@remotehost, b.su to some-user, c. execute some scripts (e.g. cd, defining some func and alias ) and d.maintain the SSH session in an interactive shell.
why not SSH directly to some-user? is:
- ec2-user@$host accepts SSH via private key and I have the key on my jump server.
- But, some-user@$host doesn't accept SSH via private key but only via password(This is undesirable but please take this as prerequi…
« first day (4932 days earlier) ← previous day next day → last day (246 days later) »