how to connect sql server over ssh tunnel on jumpserver

  1. using ssh port forward

    ssh -f -N -L 5432:remoteIp:5432 [email protected]
    
  2. clear jumpserver command history

    select * from terminal_command limit 10;
    delete from terminal_command where user="chenshi (chenshi.net)";