NII-cloud-operation / sshkernel

SSH Kernel for Jupyter
BSD 3-Clause "New" or "Revised" License
71 stars 14 forks source link

Allow 'user@host' syntax in %login magic argument #25

Closed rkunze closed 4 years ago

rkunze commented 4 years ago

If the "host" argument to %login matches the regex "([^@)+@(.*)", set the username from the first group of the regex and change the host name to be the second grup.

This is intentionally implemented so that a user name given as a %login magic argument overrides a username specified in ~/.ssh/config for this host.

m-ueno commented 4 years ago

@rkunze Thank you very much!