11/28/2023 0 Comments Visual studio code chromebookbashrcĪlias dev = 'ssh workstation -t "tmux attach || tmux new"' To avoid this, we can rely on a terminal multiplexer like tmux (or screen): $ cat. This could be enough, but every time we disconnect (or the connection drops) we will have to re-connect and restart from scratch whatever we were doing. With this profile, we can now access the remote machine easily just by typing: ❯ ssh workstation Line 7-9: a couple of tweaks to improve stability of the SSH connection.Line 6: we are instructing SSH to start dynamic port forwarding, which will be useful in the Accessing Services Local to the Remote Workstation section.Line 5: we are instructing SSH to use the key pair we specifically created and trusted ( id_rsa-remote-ssh).Line 3-4: hostname and user of the remote host.Line 2: we are defining a new configuration named workstation.With the key pair now trusted, we can create a custom profile to invoke every time we want to login to the remote workstation, without having to provide the combination of username/hostname/keys: 1 ssh/id_rsa-remote-ssh Create a Custom Profile Install the newly generated public key in the remote machine’s authorized_keys:.❯ ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa-remote-ssh Nothing new here, just a normal key-based authentication to setup: Next, you’ll probably want to streamline SSH access to the remote Linux workstation (for this post I will be assuming it has a hostname of v),īy using key-based authentication, and (most importantly) by creating a custom profile to speed up login and to simplify access to a remote session. Optionally, I’ve found the Secure Shell App extension to be a handy alternative to the native terminal that comes with the Linux Backend. Reboot your Chromebook and sign back in.Download the latest binary (using the direct download link) and install it:.Open the Linux terminal on your Chromebook.Thanks to the Linux Backend we can also install Visual Studio Code for Linux: Setup can take around 10 minutes, but it is pretty straightforward.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |