i was asking myself, if it is unsafe for some reason, to connect to an ssh-server when you are root on the computer that represents the ssh-client. i was googling, but i only found tons of questions and articles talking about not to log in as root on the ssh server.
so, is it ok to execute
root@mycomputer:~$ ssh serveruser@serverip
or
user@mycomputer:~$ sudo ssh serveruser@serverip
?
edit: @guntberts question, why i would do this: becouse in some situations it would be more convenient or faster.
e.g. you are root on your computer and want to log into a server without switching the user again, or you want to copy or sync something to the server, that only root can read. of course its not neccessary, and when there are security issues it should not be done.
root
(local perspective).