Jump to content

Search the Community

Showing results for tags 'ssh'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 8 results

  1. Hello guys! Just wanted to share workflow I created for Mountain Duck app. Heavily based on Cyberduck Favorites by Kasoki Just use "md" and "mt" keywords for searching your bookmarks list of ftp\sftp\basically any type of server to quickly mount\unmount or ssh to it. It's based on apple script menu bar item click integration, but is very reliable, at least for me. Workflow GitHub Happy for any kind of feedback
  2. This one has been at the top of my Alfred wishlist since I downloaded my first Alfred v0.whatever beta: a workflow to open an ssh session (using the default ssh: protocol handler) with "smart" hostname autocompletion (based on ~/.ssh/config, ~/.ssh/known_hosts, /etc/hosts, Bonjour or any file containing the names of hosts you need to connect to). Comments and suggestions welcome. Download v1.3 for Alfred 2 Download v2.0 for Alfred 3 Source and Issue Tracker on github Robin Updates 2013-03-14 00:00, v0.4: rudimentary fuzzy matching, to pull entries from /etc/hosts as well as ~/.ssh/known_hosts, and to deal with usernames properly. 2013-03-14 09:00, v0.5: smart host matching. 2013-03-14 22:45, v0.6: ~/.ssh/config and Bonjour discovery (including full BTMM support), and improved error handling. 2013-03-14 23:00, v0.61: explicitly removed 'broadcasthost' from the list of possible matches. 2013-03-15 00:30, v0.7: match '.' as '.' 2013-03-16 10:45, v0.8: refactored code and add tab autocompletion. 2013-03-16 13:30, v0.9: oops - the last update broke the workflow if you didn't have pybonjour installed; fixed. Continued refactoring: now using nikipore's alfred-python module. 2013-03-16 14:15, v0.10: further refactoring to break core functionality out into a dedicated module (enabling module compilation). Combined with caching of file parsing results this should deliver significantly enhanced performance (not that it was slow before). 2013-03-16 23:00, v1.0: complete refactoring and move release to github. New feature: display the source(s) of each suggested completion. This ought to be the last update for a while. 2013-03-16 08:40, v1.1: fixed breakage when either of ~/.ssh/config or ~/.ssh/known_hosts didn't exist. 2016-06-02 21:00, v1.3: fixed path to Alfred cache (thanks @okapi!). 2016-10-07 12:30, v2.0: The Alfred 3 Release (including removal of built-in sources and addition of custom sources)
  3. Secure SHell for Alfred 3 Open SSH/SFTP/mosh connections from Alfred with autosuggestions based on SSH config files, /etc/hosts and your history. Features Auto-suggest hostnames from ~/.ssh/* and /etc/hosts (sources can be individually disabled). Remembers usernames, so you don't have to type them in every time. (You can also remove connections from your history or disable it entirely.) Alternate actions: - Open connection with mosh instead of SSH. - Open SFTP connection instead of SSH. - Ping host. Data sources The workflow reads hosts from the following sources (in this order of priority): ~/.ssh/config History (i.e. username + host addresses previously entered by the user) ~/.ssh/known_hosts /etc/hosts /etc/ssh/ssh_config Installation Download from Packal or GitHub releases and double-click the file to install in Alfred. Source code is on GitHub. Usage Keyword is ssh: ssh [<query>] — View and filter known SSH connections. - ↩ or ⌘+<NUM> — Open the connection. - ⇥ — Expand query to selected connection's title. Useful for adding a port number. - ⌘+↩ — Open an SFTP connection instead. - ⌘+⌥ — Open a mosh connection instead. - ⇧+↩ — Ping host. - ^+↩ — Forget connection (if it's from history). Configuration There are several options available in the workflow's configuration sheet. Notably, you can turn off individual autosuggestion sources. Please see the GitHub README for details. Please note: The workflow generates an ssh:// (or sftp://) URL and asks Alfred to open it. Similarly, the ping and mosh features uses Alfred 3's Terminal Command feature. If it's not opening in the right app, it's not the workflow's fault. Licencing & thanks This workflow is released under the MIT Licence. It uses the following libraries and resources: The icon is based on Octicons by Github (SIL Licence). ssh_config (MIT Licence) to parse SSH config files. awgo (MIT Licence) for the workflowy stuff. This workflow started as a port of @isometry's Python SSH workflow to Go as a testbed for awgo. It has since gained some additional features. If you need Alfred 2 support, check out @isometry's workflow. Changelog v0.6.0 — 2016-11-09 - Add in-workflow updates v0.5.0 — 2016-10-31 - Add support for SSH configuration files (~/.ssh/config and /etc/ssh/ssh_config) - Alternate action: open connection with mosh v0.4.0 — 2016-05-27 - Add ability to turn sources of suggestions off #1 v0.3.0 — 2016-05-26 - Alternate action: Open SFTP connection - Alternate action: Ping host - Remember connections with usernames, so you don't have to type the username each time v0.2.0 — 2016-05-23 - First public release
  4. G'day folks! I've recently dug into writing a workflow for Alfred which purpose is to control Hyperion (a service which supplies LED stripes with data). However, when I'm trying to ssh into the remote machine to fetch a list of all available colors (148 ones), it apparently takes too long. Now, I've read on the forum that Alfred has no such thing as timeout. But in that case, I would love if someone could explain why I can fetch the list of effects, where there are only 14 lines and not the list of colors (148). Is there anything I can do? Oh, and yeah: I've seen the setting "terminate script on subsequent input setting", but I cannot find it no more. I thought I could test without that setting, but I don't seem to find it anymore. Edit: found the setting. Whatever setting I had didn't matter. If I run the script in the terminal, the file with the list creates just fine. It's only an issue when using Alfred. Thankful for answers.
  5. During development, have you ever found yourself copying a link from the browser and trimming it to fetch the host to ssh into that box for debugging. This is a simple tool that helps you parse segments of the URI to copy what you need. More details here: http://dkulkarni.github.io/alfred-uri-parser/ Follow me on twitter http://twitter.com/deekulkarni for updates.
  6. The title basically says what I'm trying to do. I have a python script using deanishe's alfred-workflow library that I'm using to build an ssh CLI string. Workflow is set up like this: The Script Filter runs "python jump.py {query}", or attempts to. jump.py looks like the following, and is meant to take args such as "9999,192.168.100.100,50.57.203.223", and buildout 'query', which should be passed to the Terminal Command action of "ssh {query} def main(wf): if len(wf.args): query = wf.args[0] else: query = None print query log.debug(query) arglist = query.split(',') randport1 = random.randint(5000,7000) randport2 = random.randint(5000,7000) port = arglist[0] srv1 = arglist[1] srv2 = arglist[2] query = "-A -t -L 9800:localhost:{0} -L {1}:localhost:{2} user@{3} ssh -L {4}:localhost:9800 -L {5}:localhost:80 user@{6}".format(randport1,port,randport2,srv1,randport1,randport2,srv2) wf.add_item( title = "Jump from %s to %s" % (srv1,srv2), arg = "-A -t -L 9800:localhost:{0} -L {1}:localhost:{2} user@{3} ssh -L {4}:localhost:9800 -L {5}:localhost:80 user@{6}".format(randport1,port,randport2,srv1,randport1,randport2,srv2), valid = True ) wf.send_feedback() # Mainloop if __name__ == u"__main__": wf = Workflow() log = wf.logger sys.exit(wf.run(main)) This is the debug output I get... I'm not terribly familiar with XML, so I don't know what's going on here. The confusing thing is I have another script that is identical in the way it takes the args passed through Alfred, splits them into a list, and then assigns it to key value pairs in a dict. It works fine.. <?xml version="1.0" encoding="utf-8"?> <items><item valid="no"><title>Error in workflow 'com.alfred.custconn'</title><subtitle>list index out of range</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items> [STDERR: alfred.workflow.input.scriptfilter] 15:18:37 jump.py:28 DEBUG 9999,11.48.54.65,11.11.11.1 [INFO: alfred.workflow.input.scriptfilter] 9999,192.168.100.100,50.57.203.223 [ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)'. Row (null), Col (null): 'Document is empty' in XML: 9999,192.168.100.100,50.57.203.223 <?xml version="1.0" encoding="utf-8"?> <items><item valid="yes"><title>Jump from 192.168.100.100 to 50.57.203.223</title><subtitle /><arg>-A -t -L 9800:localhost:6678 -L 9999:localhost:5025 user@192.168.100.100 ssh -L 6678:localhost:9800 -L 5025:localhost:80 user@50.57.203.223</arg></item></items>
  7. Hi guys, This workflow lets you quickly execute Fabric tasks. It requires Fabric to be installed and properly configured. GitHub: https://github.com/fniephaus/alfred-fabric Download-Link: https://github.com/fniephaus/alfred-fabric/raw/master/Fabric-for-Alfred.alfredworkflow
  8. Hi. I wonna create workflow to start bash script on my shared hosting. Steps. 1. Open Terminal.app with command 'ssh user@host' 2. Input password. How? 3. Run bash script.
×
×
  • Create New...