We have a new CentOS 8 server that we are running into issues with when trying to create files/directories over SSH. For example, while on the server as the user we are using to SSH I can create a directory and it defaults the permissions to 755. However, if I am on another server and use the following command it will create the directory with 700 permissions
ssh user@newserver mkdir /home/user/testdir1
The same goes for files, on the server as the user I create a file, it gets 644 permissions. Creating the file over SSH it gets 600 permissions.
ssh user@newserver touch /home/user/testfile1
What am I missing?