         if let sshidentityfile = config.sshidentityfile {
             sshidentityfileadded = true
             if let sshkeypath = config.sshkeypath {
+                // "ssh -i ~/sshkeypath/sshidentityfile"
                 identifyfile = sshkeypath + sshidentityfile
             } else {
+                // "ssh -i ~/.ssh/identifyfile"
                 identifyfile = self.defaultsshkeypath + sshidentityfile
             }
-            // "ssh -i ~/.ssh/identifyfile"
             if forDisplay { self.arguments?.append(" \"") }
             // Then check if ssh port is set also
             if let sshport = config.sshport {
                 sshportadded = true
+                // "ssh -i ~/sshkeypath/sshidentityfile -p portnumber"
                 self.arguments?.append("ssh -i " + identifyfile + " " + "-p " + String(sshport))
             } else {
                 self.arguments?.append("ssh -i " + identifyfile)

    }

    // Local params rules global settings
    func sshportparameter(config: Configuration, forDisplay: Bool) {
        // -e "ssh -i ~/.ssh/id_myserver -p 22"
        // -e "ssh -i ~/sshkeypath/sshidentityfile -p portnumber"
        // default is

            self.arguments?.append(parameter4)
            if forDisplay { self.arguments?.append(" ") }
        }
        if offsiteServer.isEmpty == false {
            // We have to check for both global and local ssh parameters.
            // either set global or local
            if parameter5.isEmpty == false {
                if config.sshport != nil || config.sshport != nil || config.sshkeypath != nil {
                    self.sshparameterslocal(config: config, forDisplay: forDisplay)
                } else {
                    self.sshparametersglobal(config: config, forDisplay: forDisplay)
                }
            }
        }
    }
