![]() If the part that sucks for you is opening Terminal, then you could try using something like DuckBill, although the only reasons I can think of to run ssh OUTSIDE of Terminal might possibly be for running X Windows server programs or an ssh tunnel. (Disclaimer: you might need to do some shell customization to get that working, but I believe it will work by default in zsh and probably in bash as well.) at the command prompt, and you'll see all the possible completions. If all of the aliases start with the same thing, like 'connect.', then you just type connect. The Terminal app in the Utilities folder. In the list of utilities, double-click the Terminal app to open it. ![]() Select Utilities from the Go dropdown menu. Click Go in the menu and select Utilities or use the default keyboard shortcut Shift - Command () - U. For instance, let's say you have 25 different servers you connect to, and you don't want to remember all the names/aliases you gave them in the. Both methods should bring up the Finder menu in the top. zshrc or whatever): alias v='ssh -p 12345 only advantage I can see over other approaches is that (in zsh at least, and I think bash) you can use command completion to see all your servers to connect to. Add something like this to shell dotfile (.profile or. If the part that sucks for you is typing in a long and complex ssh command, but you don't mind opening Terminal, and for some reason you don't want to use any of the previous answers' approaches, then you can also use aliases or functions. Just add your host under SSH by clicking the + button in the right column. You can also use the New Remote Connection… menu item in Terminal to connect. command) containing the command line you use to connect to the server ( ssh compy or ssh -i ~/.ssh/my_rsa_key -p 90 It will open in Terminal and run that command. command file (a plain text file with the extension. Now, when you are in finder, go to the menu and click Finder > Services > New Terminal Window Here. To quickly open an ssh connection from nearly anywhere on your Mac, do the following: Open TextEdit and type in your connection string in the form of: ssh:// Select the whole line and drag and drop it on the Desktop. Tick the box for 'New Terminal at Folder' (there should be an option similar to that if you use an alternative terminal like iTerm2). If you use key-based authentication and store your key's password in the Keychain, you won't even need to enter a password. In the services category scroll down to 'Files and Folders'. IdentityFile is not mandatory if not using a key.Port is not mandatory if using default SSH port.HostName can be either an IP address or an actual hostname.Add an entry for each computer you want to connect to, like this: Host compy The most *NIX-y answer is to use SSH's features to your advantage.Ĭreate a file named config in ~/.ssh/ (a folder named.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |