solution is to edit /etc/inputrc
136c136
< $if term=xterm
---
> #$if term=xterm
169c169
< $else
---
> #$else
181c181
< $endif
---
> #$endif
2010年12月22日 星期三
2009年4月12日 星期日
Cannot Copy Text in Vim While Using Putty
vim automatically sets visual mode when you click mouse buttons
solution is to stop vim from interpreting the mouse clicks
or add this to ~/.vimrc
solution is to stop vim from interpreting the mouse clicks
set mouse=
or add this to ~/.vimrc
2008年8月18日 星期一
Correct Putty settings to connect UTF-8 environment
Window -> Appearance -> Font settings
Fixedsys, 12-point
Window -> Translation -> Character set translation on received data
UTF-8
Fixedsys, 12-point
Window -> Translation -> Character set translation on received data
UTF-8
2007年11月19日 星期一
SOCKS Forwarding With OpenSSH on Linux
Run ssh on linux
-D Specifies a local ``dynamic'' application-level port forwarding.
This works by allocating a socket to listen to port on the local side.
The SOCKS4/5 protocols are supported, and ssh will act as a SOCKS server.
Run putty on Windows
1. Connection -> SSH -> Tunnels
2. type port number into "Source port" then add to set up dynamic fowarding for a listening local port
3. leave Destination blank
4. select Dynamic and Auto
5. fill Hostname and Port of ssh eonnction then Open
6. if you wanna keep the session alive by sending null packets periodically, go to Connection then input seconds
ssh -D port user@host
-D Specifies a local ``dynamic'' application-level port forwarding.
This works by allocating a socket to listen to port on the local side.
The SOCKS4/5 protocols are supported, and ssh will act as a SOCKS server.
Run putty on Windows
1. Connection -> SSH -> Tunnels
2. type port number into "Source port" then add to set up dynamic fowarding for a listening local port
3. leave Destination blank
4. select Dynamic and Auto
5. fill Hostname and Port of ssh eonnction then Open
6. if you wanna keep the session alive by sending null packets periodically, go to Connection then input seconds
2007年8月14日 星期二
Connect through SSH tunnel on Windows
1. Download Plink (a command-line interface to the PuTTY back ends)
2. Execute it with parameters on a windows machine
3. Then you could have localhost:port forwarded to remote server with encryption
2. Execute it with parameters on a windows machine
# -C enable compression
# -N don't start a shell/command (SSH-2 only)
# -v show verbose messages
# -ssh force use of SSH protocol
# -L [listen-IP:]listen-port:host:port
# Forward local port to remote address
plink.exe -C -N -v -ssh -L local_port:remote_ip:remote_port -l ssh_username ssh_server_ip
3. Then you could have localhost:port forwarded to remote server with encryption
訂閱:
文章 (Atom)