How to ssh and cd to the current directory?

ssh by default only goes to the home directory ~. I'm wondering if
there is a way to supply a directory (that is /home/name/some_dir in
this case) to it, so that it will go to the directory directly.

$ssh localhost # I want to change the directory to /home/name/some_dir
after sshed to localhost