ssh

Aptana Studio MySQL Connection String using SSH

Hello, I would like to connect to a MySQL DB using SSH from Aptana Studio, does anyone know what the connection string should be? ...

Restricting JMX to localhost

While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only accessible to local machine. Unfortunately it appears that the "out of the box" management options do not allow restricting the ports to a local interface and nets...

Regular Expression to match an ssh connection string

I'm trying in vain to write a regular expression to match valid ssh connection strings. I really only need to recognise strings of the format: user@hostname:/some/path but it would be nice to also match an implicit home directory: user@hostname: I've so-far come up with this regex: /^[:alnum:]+\@\:(\/[:alnum:]+)*$/ which does...

Python: os.environ.get('SSH_ORIGINAL_COMMAND') returns None

Trying to follow a technique found at bzr and gitosis I did the following: added to ~/.ssh/authorized_keys the command="my_parser" parameter which point to a python script file named 'my_parser' and located in /usr/local/bin (file was chmoded as 777) in that script file '/usr/local/bin/my_parser' I got the following lines: #!/usr/bi...

git can't remember my passphrase

I have just start using git and i can't get it to remember my passphrase I'm using cmd.exe elevated and my git host is github and i have create a ssh key like that guide on github but i still get *\subnus.mvc>git push origin master Enter passphrase for key '/c/Users/Subnus/.ssh/id_rsa': ...

Reverse SSH tunnel monitor

I've setup a reverse ssh tunnel, using PuTTY, to allow me to VNC into a home computer without having to enable NAT port forwarding. Works great, no problem. I would like to set the tunnel up as a "persistent service" that will connect on boot up and reconnect when dropped. PS. this is on Windows. Exhaustive googling found a few produ...

Running interactive commands in Paramiko

Hi, I'm trying to run an interactive command through paramiko. The cmd execution tries to prompt for a password but I do not know how to supply the password through paramiko's exec_command and the execution hangs. Is there a way to send values to the terminal if a cmd execution expects input interactively? ssh = paramiko.SSHClient...

How to check out a Subversion repository using svn+ssh protocol?

I'm trying to checkout a repository via command line (the 'svn co' command), using the svn+ssh protocol. I need to checkout as a different user than what I currently am. The command svn co svn+ssh://username@server/repo/ would make sense, however when it prompts for a password, it never accepts it. How do I checkout a repository over sv...

how reliable would it be to download over a 100,000 files via wget from a bash file over ssh?

I have a bash file that contains wget commands to download over 100,000 files totaling around 20gb of data. The bash file looks something like: wget http://something.com/path/to/file.data wget http://something.com/path/to/file2.data wget http://something.com/path/to/file3.data wget http://something.com/path/to/file4.data And there ...

How can I set up Eclipse to use ssh-agent for cvs?

Several ways to ask this question: How can I get eclipse to use my ssh-config? How can I get eclipse to use /usr/bin/ssh instead of the internal implementation? (I am not completely sure it does, but it does not read Host-entries in .ssh/config) This is what I have tried: have CVS_ROOT in the environment eclipse starts in (I am as...

Barebones Linux Server Install

Hi all, Whats the simplest way to get a barebones linux server installed? barebones = just enough to get ssh and package manager. Current I've been using CentOS with server install and removing any packages that I know i do not want installed. But is there a better way? I just want a simple ssh shell + package management to start with...

SFTP Rename file to append date

I'm sending a file from a mainframe host to a linux ftp sever using sftp. I want to append the date to the filename once the file resides on the linux box. (Ex: filename.txt becomes filename122308.txt) I have tried the 'rename' command using 'date +%m%d%y' - the file was renamed but the flags were not executed (The filename became file...

ssh tunnel for sendmail

I'm going nuts here, trying to get my system configured. I have a laptop at home and a workstation at work. I use mutt and sendmail. I have a home isp that is on a lot of blacklists, so that any email I send from my laptop through my isp is frequently blocked as spam by the receiver. I can ssh to my workstation and use mutt there inter...

Using git with SSH and (sometimes) corkscrew

I need to use git over SSH (it's a self-imposed limitation, but one I am loathe to break). If my laptop is sitting on my home network, it all works great. When I'm at work or logged in via VPN, however, I would need to use corkscrew to access my remote repository, which I can set up without problems. I would like to remain lazy and ...

How to restrict SSH users to a predefined set of commands after login?

This is a idea for a security. Our employees shall have access to some commands on a linux server but not all. They shall e.g. have the possibility to access a log file (less logfile) or start different commands (shutdown.sh / run.sh). Background information: All employees access the server with the same user name: Our product runs wit...

Client firewall blocks all ports but 80 and 443, need away to forward requets on port 443 to SSH or HTTPS

Hi, I am currently working at a client were they have locked down the network, except for ports 80 and 443. I need to connect to our server using SSH, but the same server also runs our website. We do not want to invest in a new server or place a second network card. I have been searching the internet for away to setup our linux server ...

ssh/VPN access from dynamic IPs / while travelling. knockd or dynDNS based authentication?

What are the advantages and disadvantages of using knockd vs. using dynamic DNS based authentication for ssh or VPN logins from a dynamic IP address or while travelling (i.e. some random hotel IP)? Ideally, any device with ssh/VPN client capability should be able to use whatever additional client software is necessary. (The alternative...

How do I push a file from a Linux box to a Windows Box?

How do I push a file from a Linux box to a Windows Box? Which versions of Windows have a built-in SSH server that a Linux box can "scp" (secure copy/ssh) to. I'm looking at freesshd right now. Any more ideas? ...

Create a second ssh key

Hi, I need to create a script that automatically setup a ssh tunnel. I think that a dedicated ssh key without password is a good start but I couldn't find if this is possible and how to do it. This key should have limited privileges (only set the tunnel up) but I need another private key (with a password) for myself. Thanks ! ...

Best way to implement an SFTP server solution?

Hi folks, I'm currently setting up a commercial SFTP server and I'm just looking for some of your opinions on the set-up I'm currently thinking of implementing, as well as a recommendation as to what commercial Secure FTP server software would be best to suit. Bear in mind that the data i'm responsible for is highly sensitive so any com...