Use env.port for ssh task
Expand user in key_filename for ssh task