mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-26 23:44:35 +02:00
Halfway through an edit pass
parent
653c0b3a9c
commit
202db53914
@ -1,25 +1,45 @@
|
|||||||
# SETUP
|
# SETUP
|
||||||
## Windows SSH Client to UNIX SSH server
|
## Windows SSH client to Linux/Unix/macOS (*nix) SSH server
|
||||||
If you want to use vi / top / man, etc commands while connecting from windows client to Linux server then please follow these steps
|
|
||||||
|
|
||||||
1) Upgrade to windows 10+ OS.
|
If you want to have the best experience while using utilities like vi, top, man, etc. while connected from a Windows SSH client to a *nix server, you should configure your terminal to use an xterm-like rendering mode.
|
||||||
|
|
||||||
2) Set the non-legacy console mode in the console properties,
|
Unfortunately, this rendering mode is only included with Windows 10. If you're not on Windows 10, you may have more luck using a third-party terminal emulator or console host like [Cmder]() or [ConEmu]().
|
||||||
Make sure you **uncheck** the "use legacy console"
|
|
||||||

|
|
||||||
|
|
||||||
3) Set the Screenbuffer width, window size width to >= 90.
|
1. Open a shell from which you want to use `ssh` (either `powershell` or `cmd`).
|
||||||

|
1. Right-click the application icon in the upper-left and the window and select `Properties`.
|
||||||
|
1. Ensure that `Use legacy console (requires relaunch)` is unchecked:
|
||||||
|
|
||||||
4) Set the environment variable (TERM) to xterm. Before logging into the SSH server.
|

|
||||||
c:\test\> set TERM=xterm
|
1. In the `Layout` tab, set the Screen Buffer width and Window Size width to >= 90:
|
||||||
c:\test\> set TERM (This should show the term set to xterm)
|
|
||||||
|
|
||||||
## UNIX SSH Client to WINDOWS SSH server
|

|
||||||
1) Set the environment variable (TERM) to xterm. Before logging into the SSH server.
|
|
||||||

|
All of these changes will persist within the same shortcut to `cmd` or `powershell`.
|
||||||
|
If you want to change the defaults for *new* shortcuts, select `Defaults` in Step 2 instead of `Properties`.
|
||||||
|
1. Set the `TERM` environment variable to `xterm`:
|
||||||
|
|
||||||
|
```
|
||||||
|
set TERM=xterm
|
||||||
|
```
|
||||||
|
|
||||||
|
In PowerShell you can also use the `$env:` namespace to edit this variable:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$env:TERM = 'xterm'
|
||||||
|
```
|
||||||
|
|
||||||
|
Both of these methods will only persist for the current session.
|
||||||
|
If you want this to happen every time you start PowerShell, you can leverage [PowerShell profiles]().
|
||||||
|
|
||||||
|
## Linux/Unix/macOS SSH client to Windows SSH server
|
||||||
|
|
||||||
|
1. Set the `TERM` environment variable to `xterm`:
|
||||||
|
```bash
|
||||||
|
export TERM=xterm
|
||||||
|
```
|
||||||
|
|
||||||
|
## Windows SSH Client to Windows SSH server
|
||||||
|
|
||||||
## WINDOWS SSH Client to WINDOWS SSH server
|
|
||||||
1) Set the non-legacy console mode in the console properties,
|
1) Set the non-legacy console mode in the console properties,
|
||||||
Make sure you **uncheck** the "use legacy console"
|
Make sure you **uncheck** the "use legacy console"
|
||||||

|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user