Jump to content

Mohammad

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Mohammad

  1. On 5/24/2016 at 11:02 PM, deanishe said:

    The library's nowhere near done. I change the API nearly every day. The JSON output isn't even complete yet.

    Go's a very nice language for workflows. It's so fast (20x faster than Python/Ruby).

     

    That has nothing to do with the workflow. It just passes the system an ssh://… URL. You have to change that on your system, e.g. via iTerm > Preferences > Profiles > General > URL Schemes.

     

    On 2/22/2017 at 10:07 PM, benjaminconnelly said:

    This is not working for me. I have alfred 3 Build 801, Wednesday 1st February 2017, Secure SHell v0.7.1, and iterm2 Build 3.0.14. 

     

    iTerm2 is handling my ssh:// and opens when i choose a connection in the workflow but nothing happens. I am taken to a blank bash prompt. 

    
    Starting debug for 'Secure SHell'
    
    [2017-02-22 12:35:24][STDERR: input.scriptfilter] ?
    12:35:24 workflow.go:705: -------- Secure SHell/0.7.1 (AwGo/0.5.0) ---------
    12:35:24 update.go:153: 73m since last check for update
    12:35:24 assh.go:338: query=, username=, port=0
    12:35:24 update.go:141: Latest release: 0.7.1
    12:35:24 sources-config.go:94: [source/load/config] 9 host(s) in '~/.ssh/config'
    12:35:24 sources-known.go:116: [known_host] Invalid hostname: 
    12:35:24 sources-known.go:116: [known_host] Invalid hostname: 
    12:35:24 sources-known.go:37: [source/load/known_hosts] 327 host(s) in 'known_hosts'
    12:35:24 sources-history.go:76: [source/load/history] 1 host(s) in 'history'
    12:35:24 sources-config.go:94: [source/load/config] 0 host(s) in '/etc/ssh'
    12:35:24 sources-hosts.go:37: [source/load/hosts] 6 host(s) in '/etc/hosts'
    12:35:24 sources.go:39: 3 duplicate(s) ignored
    12:35:24 assh.go:555: 340 host(s) loaded in 2ms
    12:35:24 feedback.go:464: Sent 340 results to Alfred
    12:35:24 workflow.go:910: ---------------------- 78ms ----------------------
    [2017-02-22 12:35:34][utility.debug] .
    /-------- SSH ---------\
    query="ssh://qa3-combined.iseatz.com"
    variables=
    {
        "DISABLE_CONFIG" = 0;
        "DISABLE_ETC_CONFIG" = 0;
        "DISABLE_ETC_HOSTS" = 0;
        "DISABLE_HISTORY" = 0;
        "DISABLE_KNOWN_HOSTS" = 0;
        "EXIT_ON_SUCCESS" = 1;
        "EXTERNAL_TRIGGER" = 0;
        "MOSH_CMD" = mosh;
        "SFTP_APP" = "";
        "SSH_APP" = "";
        hostname = "qa3-combined.iseatz.com";
        name = "qa3-combined.iseatz.com";
        port = 22;
        query = "";
        "shell_cmd" = 0;
        source = "known_hosts";
        url = "ssh://qa3-combined.iseatz.com";
    }
    \-------- SSH ---------/
    [2017-02-22 12:35:34][ERROR: action.script] ?
    12:35:34 workflow.go:705: -------- Secure SHell/0.7.1 (AwGo/0.5.0) ---------
    12:35:34 update.go:153: 73m since last check for update
    12:35:34 assh.go:256: Opening URL ssh://qa3-combined.iseatz.com
    12:35:34 assh.go:264: Command: /usr/bin/open [open ssh://qa3-combined.iseatz.com]
    12:35:34 workflow.go:910: ---------------------- 50ms ----------------------

     

    Hi, same problem here. It was because of iTerm 2 preferences.

    To set iTerm2 as default handler for ssh://, you should create another profile (named ssh for example) and set its command to $$. Then set URL Schemes to ssh.

    Read iTerm2 FAQ for more information (question: How do I set iTerm2 as the handler for ssh:// links?)

×
×
  • Create New...