Is it possible to use tunneling to connect to a ssh server via telnet? I'm using an API that can only telnet to a host, but that host will only accept ssh connections. If it is possible, what do I need to do to set that up?
...
I program with eclipse and sometimes use GUI text editors like SciTE or vim. However, I'm at a point in a project that requires me to edit files over a ssh connection in a 80 column SSH window.
Since I have to (* shiver*) sudo vim before I can open the file I'm not sure how to open the file in an editor outside the terminal (that would ...
I am trying to use plink as an ssh alternative on windows, but I am finding that when plink connects to a remote linux machine, it does not source .bash_profile or .bashrc.
Is there a different dot file I should create? Or is there another option?
For example, my bashrc file adds a directory to my path. This directory contains extra p...
I am trying to make a php script that runs on the terminal that would connect to a remote server by ssh and retrieve a file. this is my code so far
#!/usr/bin/php -q
<?php
$cwd = dirname(__FILE__).'/';
$filename = 'retrive-this.file';
$host = 'hostip';
$connection = ssh2_connect($host, 22, array('hostkey'=>'ssh-rsa'));
$methods = ssh2_...
Given a jailbroken iPhone and iPad, various windows machines, and a possible shared web host environment, how would I setup the iphone/iPad to automatically sync a folder of files, such that modifying the files or adding on the iPad would result in them being updated/added on the iphone within the file system ( assuming wifi/internet con...
Hi all,
There have been a few questions like this around the place but none have really answered my question specifically.(for example http://stackoverflow.com/questions/2529941/connecting-to-device-behind-firewall )
What I want is a central server, that receives a heartbeat from multiple ( say 100's) embedded devices behind personal f...
Suppose you run the following commands:
ssh $host1 'while [ 1 ]; do sleep 1; echo "Hello from $HOSTNAME"; done' > /tmp/output
ssh $host2 'while [ 1 ]; do sleep 1; echo "Hello from $HOSTNAME"; done' >> /tmp/output
ssh $host3 'while [ 1 ]; do sleep 1; echo "Hello from $HOSTNAME"; done' >> /tmp/output
Then the output would look like:
...
I wonder how safe ssh is, espespecially in state of authentification/initializing. Is there any way for a hacker to sniff some "hashkeys" or stuff to decrypt my stream? or is SSH completly safe, with no yet known bugs or weaknesses?
I read some text on that topic, but almost all of them dont cover such special cases. at best they only t...
Hey Guys,
I want to use a repository i hosted on github but it seems like netbeans uses a wrong fingerprint. So I get an Exception everytime I try to clone the repository.
Its like : UnknownHostKey: github.com. RSA key fingerprint is xxxxxxxxxxxx etc.
And it aborts. Any idea?
Ive tried it with tortisegit and it works fine ... but I th...
How to stream data to a remote server in unix? I do not want to do ssh.
Currently what I am doing on local machine is: cat local_file | ssh root@remote_machine "cat >> remote_file"
But this file is large and I want a lighter way than ssh. I do not care about security or ack.
...
Hi, I have a python code doing some calculation on a remote machine, named A. I connect on A via ssh from a machine named B.
Is there a way to display the figure on machine B?
...
I have successfully installed and configured msysGit Portable on my flash drive, and have used it to pull and push GitHub repos. However, I seem to always have to kludge the SSH support.
Specifically, in order for SSH to find my key files, I have to follow these instructions to start a second instance of ssh-agent and then ssh-add my ke...
I need to launch remote monitoring bash scripts via ssh connections from local windows xp machines.A total of 20 scripts and i need to log outputs.
For now i'm using a simple Autoit script that launch putty and every script,one after the other.Cons are that i cannot locally log and the process cannot be made in background (and it takes ...
Hey I'm having the same issue as John from this post
http://stackoverflow.com/questions/935057/how-to-make-ankhsvn-remember-my-svn-ssh-password/3464910#3464910
but I can't start two instances of pageant, someone please help me. Thanks.
...
I want to open a file using sudo (say, /etc/hosts) on a remote machine connected by ssh using TRAMP on Emacs.
I tried couple of options, but none of them worked. Can anybody tell me how to go about it?
Thank you
...
Hi,
I am using ch.ethz.ssh2.Connection.Connection object from ganymed-ssh2-build210.jar
I want to add timeout while establishing connection to server so that if it fails to open connection, after certain time it should throw some exception.Can anyone help on how to add timeout while establishing connection using connect method?
Thanks...
I have a private key protected with a passowrd to access a server via SSH.
I have 2 linux (ubuntu 10.04) machines and the behavior of ssh-add command is different in both of them.
In one machine, once I use "ssh-add .ssh/identity" and entered my password, the key was added permanently, i.e., every time I shutdown the computer and log...
I have a bash script which I wrote that lists out some servers/user names. I chose a # which then connects me to said server with said user name. So far the script works fine other then the fact that when I launch ssh, the bash script hangs. It doesn't dump me into ssh.
#!/bin/bash
echo `clear`
SERVER1="1.) Server1/username1"
SERVER2="2...
I have been using putty on WINDOWS XP and used the .ppk file to connect to my linux servers (several servers)
On the servers I have the following folder and file ~/.ssh/authorized_keys
I now want to use a MAC to connect via the terminal. I have set up the remote connections to the servers manually and want to know how I can setup using...
import sys, os, string
import paramiko
cmd = "grep -h 'king' /opt/data/horror_20100810*"
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('10.10.3.10', username='xy', password='xy')
stdin, stdout, stderr = ssh.exec_command(cmd)
stdin.write('xy\n')
stdin.flush()
print stdout.readlines()
...