When you connect via ssh you enter the remote machine in the home directory of the user you are using to connect
/root if you are connecting as root, but this is not permited by default on ubuntu for security reasons).
ssh server.domain.com command sends you to the ftp server instead of the 192.168.5.33 machine, you have a routing problem or a DNS problem.
Your router (or firewall, not sure how is your configuration) can be redirecting port 22 to ftp server or you DNS resolver (local
/etc/hosts file or DNS server or Samba server if you are using it to resolve hostnames) is pointing to your ftp server IP for host server.domain.com.
Look at the output of
nslookup server.domain.com on your machine to verify if this is a DNS related problem.
Obs: not sure if you need that, but to go to the
/ directory (where you find
/var/log) you need to issue
cd / command. SSH connections will never leave you there by default.
edit after comment
Ye, from nslookup output, it is your name resolution (done on server 192.168.5.33) that is sending you to the wrong server.
Look at your
/etc/hosts files in both servers and correct if wrong:
192.168.5.33, you should have the line
192.168.5.33 server.domain.com server
and on the ftp server, you should have:
192.168.5.37 ftpservername.domain.com ftpservername
Check the names of the servers with
hostname on each and correct with
hostname correctname and edit the config file with
Not sure how is DNS resolved on your network but if you are using bind, you will need to correct its zones config files too.