Skip to main content

Posts

Showing posts from April, 2015

Tunneling SSH over HTTP Proxy

Many offices and campuses implement proxy server in their networks. This situation is frustating by most developer who maintain any server outside the office or campus networks. So tunneling SSH over HTTP proxy is a best deal for them. Some apps and methods can be used to do that. But, I found this following method is easy. Download corkscrew from http://www.agroman.net/corkscrew/ Extract the downloaded file $ tar -xzvf corkscrew.tar.gz Go into corkscrews extracted directory, configure, and install it $ cd corkscrew $ ./configure $ make install   Corkscrew is now installed in /usr/local/bin Add SSH configuration file on $HOME/.ssh/config Write these lines: Host *      ProxyCommand corkscrew proxy.example.com 8080 %h %p If your proxy use username and password, you can use this code: Host *      ProxyCommand corkscrew proxy.example.com 8080 %h %p ~/.ssh/proxyauth In ~/.ssh/proxyauth , put your credentials: <username>:<password> Now you can try $ ssh

Securely Files Transfer with Remote Server using SFTP

Recently I have post a note about how to transfer files among linux servers using terminal . Now I note some commands while using SFTP. Like SSH, we can start to establish connection with remote server using following command. $ sftp user@remote.server and some command that we'll like to use pwd : check current remote directory location ls : list all files in current remote directory cd : move to other remote directory lpwd : check current local directory location lls : list all files in current local directory lcd : move to other local directory get remoteFile localFile : download remoteFile to locaFile get -r someDirectory : download files recursively from a remote directory, -P or -p to maintain appropriate permission put localFile or put -r localDirectory to send files to remote server df -h to check directory space ! to go to local shell and exit to return to SFTP session Complete commands on Ubuntu manuals: http://manpages.ubuntu.com/manpages/utopic/m