I'm developing a C# utility class that runs an external command on a Linux server via SSH (I'm using SharpSSH; I like it so far and I recommend it) and gives back some meaningful information based on the command's output.
Somewhere in the aforementioned output is an integer that should never be outside some range, but I'd like to preven...
Hello,
I have now whittled this down to a minimal test case. Thus far I have been able to determine that this is an issue related to pseudo-terminals which come about with the pipe of ssh. Adding the '-t -t' to the ssh call improved things, in that now, it takes a second call to fgets() to cause the issue. I suspect that the stderr o...
I've been searching for a library that can access multiple ssh connections at once, Ruby has a Net::SSH::Multi module that allows multiple ssh connections at once. However I rather prefer coding this in Python, are there any similar SSH module for python?
...
I want to map users (that ssh to server) to emails. In csh you have defined $REMOTEHOST variable that contains PC name from remote host. In bash, no environment variable is defined. Is there any way to get some info about connected user (except from SSH_CLIENT which gives IP and PORT)
Note that I'm using sshd and bash.
...
Hi,
I'm running an application on a bunch of nodes in a class A network, but can only access them from my own system if I log into the only node in that network that also has a class B address.
However, the client portion (with the GUI and everything) can run only on my system, so I need some way of communicating with the class A netwo...
I frequently need to ssh into a server, but I can't ssh into it directly while I'm connected to our VPN. Thus, I have to ssh into another server and ssh into it from there. Is there any way that I can write a script and/or shell function for this? I've tried this, buit it gave me an error:
% ssh jason@server2 'ssh jason@server1'
jaso...
Let's say I have a directory like-
/home/user/
and I want to list EVERY file (even in sub directories) under that folder and order them by the date they were last edited.
Can I and if so, how?
Thanks!
...
I am in the process of creating a bash script that would log into the remote machines and create private and public keys.
My problem is that the remote machines are not very reliable, and they are not always up. I need a bash script that would check if the SSH connection is up. Before actually creating the keys for future use.
...
Hi ,
I have an application on php-Codeigniter hosted on MediaTemple and I want to have a cron job runing a controller, the support told me to use CURL I tried using without any succes, example:
curl http://mydomain.com/admin/action/get
My controller inserts some information to a database, the curl doesn't display error but the ins...
hi,
often I need to work on projects that are hosted remotely.
Currently if I have a good connection to the server then I'll SSH in and use vim directly. Otherwise I'll use Komodo Edit to work on the files remotely.
Komodo is a great IDE but unfortunately the remote server functionality sucks. For instance when you want to save a file ...
Does anyone have any code for connecting to a remote server using java and an ssh key.
We dont have a password for this server, we just use our username and our ssh keys
...
Hello, I fondly remember working with WinSCP and using the fully automated local-to-remote syncing functionality, where the app would monitor a directory hierarchy and send changes to the remote server as they happened.
Is there an app available on OSX that accomplishes the same thing? I haven't really been able to find anything. When I...
Hello,
I have recently setup a new gitosis in my private network on ubuntu server. All other clients in network are windows xp machine except one linux client
I have following setup in gitosis.conf:
[group MyProjectTeam]
writable = MyProjectRepo
members = user1 user2 user3
I have also placed user1.pub, user2.pub and user3.pub key fi...
I have the following:
mysqldump -u xxxx
-h localhost
--password=xxxxx databasename |
ssh [email protected] "dd of=httpdocs/backup`date +'%Y-%m-%d-%H-%M-%S'`.sql"
...which SSH's a mysqldump to a remote machine.
I need to compress the mysqldump before it is SSH'd as the dump is 500mb and its e...
I know it's insecure.
My school has a system that you can ssh into, but it runs a strange operating system (might be openVMS based, that's what the error messages indicate). They don't use keys, just a user/password, and then an internal application is started that actually authenticates the user. I got the u/p password from their webs...
How do I scp an entire folder into a folder of the same name without replacing the content in the destination folder? (instead, I would like to add to the contents of the destination folder)
...
I have an application that provides real time log messages for users. Currently the application works by having the server listen on a straight forward TCP socket and the users can use a telnet client to connect. Once connected they get asked for their username, password and can then set a filter for the realtime events they want sent to...
How to connect to a AWS instance through ssh?
I have:
Signed up at AWS;
Created a public key and a certificate at AWS website and saved them to disk;
Went to my console and created environment variables:
#export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
#export EC2_CERT=/home/default/aws/cert-EBAINCRNWHDSCWWIHSOKON2YWG...
I need to dump a database from a shared hosting that somehow doesn't have mysqldump installed. In fact, I only have mysql and mysqladmin available from the whole set of MySQL utilities.
Is it doable or I'll need to resort to installing something like phpMyAdmin?
...
I'm building a web control that will let our junior IT staff manage firmware on our LifeSize phones. Currently we do this by uploading the new firmware onto a central server, then running this command for each phone we want to upgrade
cat new_firmware.cramfs | ssh -T [email protected] "upgrade all"
This asks me for the password, then uploa...