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
You could do something like the one I'm using. Make an alias as the one below.
alias ssh 'ssh -t \!* "cd $PWD; csh"'
(here, csh could also be replaced by bash)
This brings you directly to the 'current' path on the other machine. The usage would be like [$] ssh some machine However, I find that it works slow. So, I'm looking for an alternative.