ssh

Mixed ftp ssh permission problem

Hi, I'm running a webserver and I've setup two groups. One with just me, and another with me and a collaborator. I've chmodded to 755 my htdocs folder and I gave a specifically "upload" dir the group shared with my collab. So now my collab (via sym link) is able to upload some files via sftp, but he can also traversing all the directorie...

SSH cannot authenticate to [email protected]

Recently, I sign up for a free plan on Github.com. I follow their instructions to generate a ssh key to add to my account. However, when I try ssh -v [email protected], I get this error: debug1: Server accepts key: pkalg ssh-rsa blen 277 Agent admitted failure to sign using the key. debug1: Trying private key: /home/phuongnd08/.ssh/identit...

Connecting to MySQL via SSH with PHP

Is it possible to connect to a MySQL database, on remote server, via SSH using PHP that is installed on my local computer? I am a bit confused on this subject. My shared hosting provider suggests I use programs like MySQL Query Browser and Microsoft SQL Server Management Studio Express. I have done some research on SSH at php.net (as ...

Script: SSH command execute and leave shell open, pipe output to file

I would like to execute a ssh command and pipe the output to a file. In general I would do: ssh user@ip "command" >> /myfile the problem is that ssh close the connection once the command is executed, however - my command sends the output to the ssh channel via another programm in the background, therefore I am not receiving the output...

IDEs and DVCSs that support remote working directories?

Our web development shop is divided into two groups, at the moment: LAMP developers and Windows developers. The LAMP folk are currently using Bazaar for version control, and doing development on a remote development server. Both the shared repositories and the individual checkouts are on said server, so checkouts usually look something...

Cygwin in Windows 7

Hi, I am a fan of linux but due to worst intel wireless drivers in linux, I had to switch to windows 7. I have installed cygwin in windows and want to configure ssh, to remotely connect to my laptop. I googled and found this webpage, http://art.csoft.net/2009/09/02/cygwin-ssh-server-and-windows-7/ I am getting the following error whe...

SSH client delphi open-source library or component, or alternatives.

I need my Delphi application to issue very simple commands for example ssh -l userid host.domain.com "df -h" [email protected]'s password: XXXXX Filesystem Size Used Avail Use% Mounted on /dev/sdd5 4.9G 1.7G 3.0G 36% / /dev/sdc1 1.1G 75M 952M 8% /boot /dev/sdd2 2.0G 44M ...

Best way to handle this? (Website frontend, server backend and SSH)

Sorry about the title, don't know how to phrase this. I have my own machine running Ubuntu 9.10 and I have some scripts on their that I occasionally SSH into the machine and run. I would like to make a front end interface for this in the form of a website. How would I go about having the website SSH into my machine and run these scripts...

Open file via SSH and Sudo with Emacs

I want to open a file inside Emacs which is located on a remote server, with sudo powers on the server. I can open local files with sudo via Tramp like this: C-x C-f /sudo::/home/user/file But I want to use sudo on the server: C-x C-f /sudo::user@server/home/user/file But this gives me sudo powers on my local machine, it asks for m...

Permissions error when connecting to EC2 via SSH on Mac OSx

I am new to EC2. I created my security credentials from this site: http://paulstamatiou.com/how-to-getting-started-with-amazon-ec2 It worked great, I rebooted and now when I try to connect I get a login/password prompt. (Which I never set up.) After several attempts I get this error: Permission denied (publickey,gssapi-with-mic). Wha...

SSH Error: Permission denied (publickey,gssapi-with-mic).

When trying to connect to EC2 over SSH I get the following error: joshua-scotts-macbook-pro:.ec2 joshuascott$ ssh -v -i OFMoodle [email protected] OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to ec2-xxx-xxx-xxx-xx.compute-1.amazonaws.com [xxx...

Mercurial on windows and ssh configuration with Copssh problem

I've installed the copssh on a windows 2008 server and then I tried to clone a reposity on the server through ssh. But no matter how hard I tried I couldn't fix this error i got. here is the log: C:\Users\Admin>hg clone ssh://[email protected] The authenticity of host 'rafsanjani.ir (96.31.90.174)' can't be established. RSA key finger...

Best method for using Subclipse with an SSH Remote Project in Eclipse

Hi All, I have a Remote Project (via SSH) set up in Eclipse. The Subclipse plugin can't utilize the Remote Project's file system: Subclipse forum post As a result, you can't use the Subclipse features in a Remote Project. Are these my only options for synchronizing a remote SSH folder in Eclipse?: rsync / Unison to a local folder...

How to start process over ssh that doesn't terminate when session ends?

Is there a way to start a process using ssh that doesn't terminate when the ssh session terminates? I want the job to keep running on the computer I'm ssh-ing into without me having to keep the connection open. ...

How to run automated rsync using ssh2

Hi all, i am trying to setup rsync between two machines over ssh2 protocol. Earlier we used ssh1 for automated rsync without any passphrase, but recently we migrated to ssh2 and running rsync with ssh2 prompts for passphrase. I generated a new SSH2-RSA key and that too without passphrase, but it still asks me for the passphrase.Here is...

Verify a file exists over ssh

Hello, I am trying to test if a file exists over SSH using pexpect. I have got most of the code working but I need to catch the value so I can assert whether the file exists. The code I have done is below: def VersionID(): ssh_newkey = 'Are you sure you want to continue connecting' # my ssh command line p=pexpe...

ssh executes bash script with ksh because of user default shell which i cant modify

hi i want to execute bash script with ssh but when i try this it's using ksh to execute command because of user has default shell is ksh which i use with ssh i can't change user default shell so what trick can i do to execute my bash script with ssh ? ...

passing bash variables to ssh

ssh pvuser@host '. ~pvuser/.profile;/opt/datamart/bin/resmgr -import segp -colNames "npath cond type" -line "~Thresholds~Transmission_Auto|_|$r|_|rule|_|"' I am having trouble trying to pass the variable $r to ssh in my bash script above. Thanks for help ...

Follow pids across machines (ssh)

Hey I am basically trying to write a pstree-like command except that it should follow processes across machines. What I mean is that if I run this : $ ssh $node sleep 1000 Then the command should display something like this : ssh $node -- ($node) sleep 1000 And if I'm running : $ ssh $node ssh $node sleep 1000 ssh $node---($nod...

Respond to a SSH prompt before first command with ruby and Net::SSH

Hello, I'm trying to connect, using Net::SSH, to a server that immediately after login executes a script that requires input from user. The user has to enter "1" or "2" and will receive some data via in the terminal afterwards. My problem is that, although I am able to connect, I can not figure out a way to send "1\n" to the server and...