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

Allow commands to be appended to ssh connection command through the ssh config #2808

Closed
Nosferican opened this issue Apr 21, 2020 · 5 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Milestone

Comments

@Nosferican
Copy link

Nosferican commented Apr 21, 2020

I would like to be able to execute some command to modify the shell returned by the SSH command.
For example,

ssh [email protected] ijob -A MyAccount -p MyPartition -t 01:00:00

should return the shell in the interactive Slurm job just as

ssh [email protected] ijob -A MyAccount -p MyPartition -t 01:00:00 -pty -u /bin/bash

does. When setting up a remote connection the SSH command does not register the appended commands in the SSH config file.

Host Cluster
  HostName cluster.domain.edu
  User my_id
  IdentityFile ~/.ssh/id_rsa

It should have something like

Host Cluster
  HostName cluster.domain.edu
  User my_id
  IdentityFile ~/.ssh/id_rsa
  Command ijob -A MyAccount -p MyPartition -t 01:00:00

Related: #141 , #1722

@Nosferican
Copy link
Author

Nosferican commented May 14, 2020

Current workaround is to have them in your ~/.bashrc but doesn't work well with Slurm.

@chrmarti chrmarti added the ssh Issue in vscode-remote SSH label Oct 13, 2020
@bamurtaugh bamurtaugh added the feature-request Request for new features or functionality label Nov 4, 2020
@mcusi
Copy link

mcusi commented Nov 4, 2020

Hey this would be really helpful! thanks

@roblourens
Copy link
Member

Thanks for the issue, I would call it a duplicate of the issues you linked

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 6, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

6 participants
@roblourens @Nosferican @chrmarti @mcusi @bamurtaugh and others