« first day (4932 days earlier)      last day (246 days later) » 

tom
tom
11:58
@jesse_b Sorry for my slow reply. Well, skipping 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.
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
> some-user@$host doesn't accept SSH via private key but only via password
I know the password but want to avoid typing it.

« first day (4932 days earlier)      last day (246 days later) »