Cool Stuff to Do With SSH
@ rushi | Saturday, Feb 5, 2022 | 1 minutes read | Update at Saturday, Feb 5, 2022

Watch Netflix from restricted regions

Use: Some Netflix shows are only available in India, Let us proxy through some Indian server to watch Netflix

# In terminal 1 
# 9050 is default port for proxychains socksproxy
# something@someIP should be some Indian server
ssh something@someIP -D 9050
# In terminal 2
proxychains firefox
# Check the IP using https://www.whatismyipaddress.com It should show the ip of the ssh server(India), Now you can watch Indian Netflix :D

VNC over SSH tunnel

Best alternative if Anydesk/ Teamviewer fails on linux

# The first thing to do is create the tunnel that routes packets from localhost (at port 9000) to the remote host (at port 5901) through port 22

ssh -L 9000:localhost:5901 USER@REMOTE_IP
  • Test localhost:9000 in vncviewer
  • You can also use REMOTEIP:5901 in vncviewer without ssh tunneling, but ssh makes it more secure :D

Transfer files over SSH

tar -cvf somedir | ssh USER@REMOTEIP "tar -xf -"

VNC over SSH tunnel over Tor (no public ip)

  • Start vncserver on port 5901 on the server
  • Binding 9000 of local machine with 5901 in remote, use the command below to bind
sudo proxychains ssh -L 9000:localhost:5901 root@ziuvhhwxme30i.onion
  • Test localhost:9000 in vncviewer

关于我

g1eny0ung 的 ❤️ 博客

记录一些 🌈 生活上,技术上的事

一名大四学生

马上(已经)毕业于 🏫 大连东软信息学院

职业是前端工程师

业余时间会做开源和 Apple App (OSX & iOS)

主要的技术栈是:

  • JavaScript & TypeScript
  • React.js
  • Electron
  • Rust

写着玩(写过):

  • Java & Clojure & CLJS
  • OCaml & Reason & ReScript
  • Dart & Swift

目前在 PingCAP 工作

– 2020 年 09 月 09 日更新

其他

如果你喜欢我的开源项目或者它们可以给你带来帮助,可以赏一杯咖啡 ☕ 给我。~

If you like my open source projects or they can help you. You can buy me a coffee ☕.~

PayPal

https://paypal.me/g1eny0ung

Patreon:

Become a Patron!

微信赞赏码

wechat

最好附加一下信息或者留言,方便我可以将捐助记录 📝 下来,十分感谢 🙏。

It is better to attach some information or leave a message so that I can record the donation 📝, thank you very much 🙏.