Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change SSH options for open in Terminal.app #4232

Closed
cyberduck opened this issue Feb 18, 2010 · 3 comments
Closed

Change SSH options for open in Terminal.app #4232

cyberduck opened this issue Feb 18, 2010 · 3 comments

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Feb 18, 2010

1e1da9f created the issue

Hello!

When I launch Terminal.app, my terminal connects with this command:

ssh -t guest@txot -p 22 “cd /home/guest/ && exec \$SHELL”

Is it possible to change SSH options?

Thanks

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Apr 2, 2010

1e1da9f commented

up...

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jul 27, 2010

@dkocher commented

Which options in particular you want to be able to customize?

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Aug 11, 2010

@dkocher commented

You can now change the SSH command as of 4681206 using the hidden configuration option

defaults write ch.sudo.cyberduck terminal.command.ssh \"ssh\ -t\ {0}\ {1}@{2}\ -p\ {3}\ \\\"cd\ {4}\ \&\&\ exec\ \\\\\$SHELL\\\"\"

where

  • {0} is -i <path to the private key>
  • {1} is the username from the login credentials
  • {2} is the hostname
  • {3} is the port number of the remote host
  • {4} is the current working directory in the browser

Because of all the escaping of characters, it might be easier to edit the key using Property List Editor if you have the developer tools installed. You can then set the string for the key terminal.command.ssh to ssh -t {0} {1}@{2} -p {3} "cd {4} && exec \$SHELL". Test the string in Terminal.app first if it is valid.

@cyberduck cyberduck closed this Aug 11, 2010
@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants