This does require updating your $HOME/.bashrc on each of the target systems, which might or might not make it unsuitable for your purposes. On my server (the Windows machine Im SSHing into) I will set a registry key to set the default shell. On other Windows installations you may need to install an SSH client, of which PuTTY is the most commonly used. Enable WSL on your Windows machine (have Linux running as a program) Set up SSH on Windows and be able to SSH into your machine Set the default SSH shell to. or automatic: Set-Service -Name sshd -StartupType Automatic Configuring the Default Shell for OpenSSH in Windows 10. You might want to make the history -s command unconditional. Now either start the SSHD service, or set it to start automatically: Start-Service sshd Get-Service sshd. It's flexible, but not quite automatic, and in your case it's easier than typing tmux list-sessions. If -Y doesn't work check you sshd config on the remote PC (see Denis Lukinykh's answer). You first ssh to the remote computer with the additional -Y option and the run the application (e.g. After reconnecting, I can just type Control-P Enter and I'm back in my screen session - or I can ignore it. To display the application on your local PC. With that addition, and after creating that (empty) file in my home directory, I automatically have the screen -dr command in my history when my shell starts. I keep a screen session running on one particular machine, and I've had problems with ssh connections to that machine being dropped, requiring me to re-run screen -dr every time I reconnect. As an alternative, you can also start SSH from the Chromebook Linux command line. With the SSH server connection set up, you can just click on it and launch an SSH session. I recently added the following to my $HOME/.bashrc (something similar should be possible with shells other than bash): if then If you havent set up an SSH key, you can do so using the instructions in the next section. You can verify this by typing ssh at the command line. This isn't quite what you're looking for, but I've found it useful in similar circumstances. Your local computer might have an SSH client installed by default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |