Chitika

Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Wednesday, August 21, 2013

linux: secure, quick and easy sock5 proxy over ssh

Connect to remote server using following ssh command:

> ssh -D 12345 remote-server.com

a sock5 server will started on localhost:12345, port is 12345.

install tsocks package, as sock5 client

> sudo apt-get install tsocks

edit /etc/tsocks.conf

> vi /etc/tsocks.conf

remove everything, and enter following lines:

server = 127.0.0.1
server_type = 5
server_port = 12345

save and quit

Now to run firefox (or any other network application), using sock5, execute following command:

> tsocks firefox

enjoy, secure, quick and easy sock5 proxy over ssh.

Wednesday, February 13, 2013

linux enable sftp

To enable sftp on linux (having openssh-server installed), one have to uncomment/open following line in /etc/ssh/sshd_config file, and restart sshd server (this line is already enabled in all the distributions by default, means sftp is already working):

Subsystem       sftp    /usr/lib/ssh/sftp-server


To connect to linux sftp, use sftp user@server from command line and use normal ftp (put/get/mput/mget) commands to retrieve and send files to server.