顯示具有 ssh 標籤的文章。 顯示所有文章
顯示具有 ssh 標籤的文章。 顯示所有文章

2015年2月10日 星期二

2014年3月20日 星期四

Linux run program using proxy

# apt-get install proxychains
# vi /etc/proxychains.conf
or
$ vi /home/user/.proxychains/proxychains.conf
socks5 127.0.0.1 1234
$ proxychains curl icanhazip.com


可搭配 ssh tunnel
$ ssh -D 8080 user@myhost.com




References :
How to run apt-get (wget, whois, etc.) via SOCKS Proxy using Proxychains | SwitchRoot.com

2012年6月16日 星期六

Android SSH Server (Dropbear)

取得 Root 權限後

於 Market 安裝 DropBear

連上無線網路, 以及開啟 DropBear Server

帳號 : root
密碼 : 42

2012年4月13日 星期五

ssh authorized_keys not working 無法登入

(1) SSH Server 上的權限設定
$ chmod 700 ~/.ssh
$ chmod 644 ~/.ssh/authorized_keys

(2) ssh client key 的問題?
$ ssh -i ~/.ssh/the_private_key user@remote.com

2012年4月5日 星期四

ssh 免密碼登入

Client :
$ ssh-keygen -t rsa
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ scp ~/.ssh/authorized_keys user@REMOTE_HOST:.ssh/








Reference :
SSH 免密碼登入

2012年3月15日 星期四

sshfs for windows

由日本人開發的 Dokan, 可以掛載成磁碟機, 上傳 1G 檔案大概七分鐘, 中文語系看起來沒問題, 若要使用要反序安裝所需套件與主程式

Dokan SSHFS

Dokan library

.NET Framework 2.0

2012年1月10日 星期二

Reverse SSH (SSH 反向連結)


// 從公司與自己 server 建立連線
$ ssh -R 12345:localhost:22 user@mydomain.com
 
 
// 從 server 就可順著通道回公司
$ ssh localhost -p 12345
 
// 如果需要 X forward 
$ ssh localhost -p 12345 -X
 
 
 
 
Reference :
Reverse SSH Tunneling | HowtoForge - Linux Howtos and Tutorials

2011年12月1日 星期四

SSH Tunnel for HTTP


# ssh -D 8080 user@myhost.com


Firefox 使用 porxy "localhost:8080 SOCKS v5"
配合 FoxyPorxy 使用白名單允許特定 URL 使用代理




Reference :
資訊安全 - SSH Tunnel 帶你遨遊 :: 綠色工廠 Easylife Blog

2011年11月29日 星期二

sshfs for linux

# apt-get install sshfs
# modprobe fuse

$ sshfs  -o idmap=user,uid=1000,gid=1000 username@123.456.78.9:/home/username ./mountpoint
$ fusermount -u ./mountpoint

2011年11月17日 星期四

sshd 允許 root 登入

# vi /etc/ssh/sshd_config
==========================

PermitRootLogin yes

==========================

# /etc/init.d/ssh restart