when you do an \"ssh second_machine\" you are able to connect to second_machine on your home directory
But usually i am working in my_machine in directory with very long
This should work for you
ssh -t second_machine "cd /very/long/path/to/directory/; bash"
Assumes you're wanting to run bash, substitute for a different shell if required.