How connecting via ssh as user oracle:

for example

$ ssh oracle@server

login as sys as sysdba