I want to add alias that ssh to remote machine, run few commands on it and then give me back the control to continue using this machine.
when I'm trying to run:
ssh machine_ip 'command'
the SSH shell is closing after executing the command. and when I'm trying to run:
ssh machine ip ; command
the command is executing on my local machine after i exit the remote machine.
can you please help ?
Thanks, Guy Ergas
ssh-copy-id remote-user@remote-host