Tag Archives: ssh

Reverse Tunnel over JSCH (SSH) and HTTPS

Questions: I have to implement a reverse tunnel from client to server. I have used JSCH with the following command session.setPortForwardingR(rport, lhost, lport); and it works (see also Reverse SSH tunnel with JSCH Java)! next I have to tunnel my ssh session over an HTTPS stream 2-way authenticated: client -> firewall -> apache https ->… Read More »

Saving ssh key fails

Questions: i just started a Git tutorial and I get to a deadend: I try to generate a rsa key part and it fails. I did this, in git bash: ssh-keygen -t rsa -C “myemail@myemail.com” And i got this: Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Eva/.ssh/id_rsa): enter passphrase:… Read More »

Run a command over SSH with JSch

Questions: I’m trying to run a command over SSH with JSch, but JSch has virtually no documentation and the examples I’ve found are terrible. For example, this one doesn’t show code for handling the output stream. And, this one uses an ugly hack to know when to stop reading from the output stream. Answers: The… Read More »

How to make Apache recognize domain when connecting through SSH tunnel? [closed]

Questions: I have an Apache server which is using name-based virtual hosts. NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/localhost ServerName localhost.localdomain ServerAlias localhost.localdomain ErrorLog logs/localhost_error_log CustomLog logs/localhost_access_log common <Directory /var/www/localhost1> Order Allow,Deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerName localhost1.localdomain ServerAlias localhost1.localdomain DocumentRoot /var/www/localhost1 ErrorLog logs/localhost1_error_log CustomLog logs/localhost1_access_log common <Directory /var/www/localhost1> Order Allow,Deny Allow from… Read More »

Run a command over SSH with JSch

Questions: I’m trying to run a command over SSH with JSch, but JSch has virtually no documentation and the examples I’ve found are terrible. For example, this one doesn’t show code for handling the output stream. And, this one uses an ugly hack to know when to stop reading from the output stream. Answers: The… Read More »

Using git over sshfs is too slow

Questions: I’m using git over sshfs (under Mac OS X 10,5, 10.7) but it’s too slow. Everytime I logged in remote server direcly, to use git command. I tried this post, http://kerneltrap.org/mailarchive/git/2008/10/23/3768494 however it doesn’t work. Does anyone know any good ideas? Answers: You could pick some other filesystem. SSHFS is mainly a convenience tool.… Read More »

3RSSH smoothing in Python

Questions: I’m looking for running median smoothing implementations for Python. 3RSSH in particular. There is an implementation for Excel that works fine: http://www.quantdec.com/Excel/smoothing.htm Also, R’s smooth function has 3RSSH: http://exploratorydataanalysis.blogspot.com/2009/03/smoothing-on-r.html But I want a Python version, preferably working with numpy/scipy and can’t find one. So far, I’ve had no luck with googling. Are there any… Read More »

SSH Tunnel Via PhpMyAdmin [closed]

Questions: I know this is a duplicate question, but I’ve tried many resources and none of them worked for me. My company has an Amazon Bastian Server that I SSH into. From there, I can SSH into various IP addresses to administer databases. I want these databases to be available in phpmyadmin. Here’s as far… Read More »

Can EGit (Eclipse git plugin) use an SSH key instead of a username and password?

Questions: The git central repository to which I need to commit is configured using SSH keys. My username is jmglov, but when I perform git operations (e.g. git clone), I use this configuration: : jmglov@kitiara; cat .git/config [remote “origin”] fetch = +refs/heads/*:refs/remotes/origin/* url = git@git.example.com:AwesomeWare When I try to use EGit in Eclipse to push… Read More »