How to create a shortcut for a command in Terminal that I can have in my Dock?

In Automator, create a new Application.

In that application, add an action "Run AppleScript" For the content of that AppleScript,

tell application "Terminal"
        activate
        do script "ssh [email protected]"
    end tell

Save the application, then in the Finder, drag the new application to the Dock