I am trying to connect to some of my servers using PHP ssh2_connect method. If a server is not online, my script would attempt again at a later point of time. The problem am facing is that when a server is not available, the ssh2_connect method does not return a 'false' as mentioned in the php manuals, instead it waits until the script t...
This is my code to connect and send a file to a remote SFTP server.
public static void SendDocument(string fileName, string host, string remoteFile, string user, string password)
{
Scp scp = new Scp();
scp.OnConnecting += new FileTansferEvent(scp_OnConnecting);
scp.OnStart += new ...
I'm looking for an example of how to use libssh2 to setup ssh port forwarding. I've looked at the API, but there is very little in the way of documentation in the area of port forwarding.
For instance, using PuTTY plink, There is the remote port to listen on, but also the local port that traffic should be sent to. Is it the developers...
Without being the person logged in at the console, how do I run an X application and have it display on that X session? Assume I am either root, or I am the same user who logged in, so in principle I have persmission to do this. But how do I convince X of this?
Some examples of situations like this:
Log in with SSH and run a program t...
I have a server application that writes to a popen("myCommand", "w") file descriptor in a separate thread and if the command passed to popen() results in any output to stdout or stderr, the my application exits. However, this is only an issue when my server application was invoked via inetd, if I used ssh to launch the server, it does n...
I'm currently writing a script to set some PATH in a remote machine using ssh. I have successfully set the variables in the .bashrc. However, it the last step of my script is "source .bashrc". However, when i ssh to the machine manually, the PATH is still not set. What is the problem?
...
Hi,
I know since the 3.0 SDK we can use accessories, so my question is simple, what is the process to make an iPhone app and PC (or Mac) app interact, using the USB ?
I don't ask you any code, but just the paths and the keys for making that work.
Have I to access the iPhone disk through SSH and work with files ?
Or can I send data fro...
I have cloned my git repository over ssh. So, each time I communicate with the origin master by pushing or pulling, I have to reenter my passphrase. How can I configure git so that I do not need to enter my passphrase multiple times?
Update: I should have said "password" instead of "passphrase".
...
I have GIT running on a Solaris server.
From a windows machine I installed cygwin to try to clone a repository hosted on the server.
I do the following:
$ git clone username@server:project.git
ksh: git-upload-pack: not found
So I try
$ ssh username@server echo \$PATH
/usr/bin
It seems like git is not in /usr/bin/ but in /usr/lo...
Hi all,
I've been looking around for a module which allows me to do SSH / SFTP functions in python without using POPEN to do it manually. Is there anything like this? I haven't found any real information on this, thanks!
...
Hi,
I need to edit XML files on a small Linux box that we have created. We have only SSH access on theses boxes. Is there a dedicated XML editor, or a configuration for Vim/Emacs to edit XML easily, with integrated XSD validation?
I found some tutorials for Vi
http://oss.sgi.com/LDP/HOWTO/Vim-HOWTO/xml%5Feditor.html
http://vim.wikia.c...
I'm installing a lighttpd server on a remote machine using a bash script. After installation, I need to configure the port for the server. The system says I don't have permission to modify the file /etc/lighttpd/lighttpd.conf even though I do
sudo echo "server.bind=2000" >> /etc/lighttpd/lighttpd.conf
How shall I modify this?
...
Hi!
Consider the following scenario:
I can connect to SSH_Server to access internet.
I can also connect to HTTP_Proxy to access blocked ports.
Now I want to use the HTTP_Proxy through the tunnel to the SSH_Server!
e.g.
[uTorrent] > [SSH_Server] > [HTTP_Proxy] > [peer/tracker]
I'm on Windows and I use putty. Will privoxy help?
Thank...
I've read Visual VM remotely over ssh but I think I've not fully understood because it was not working for me :-( Please can someone give some example?
ssh -D 9696 [email protected] and visualvm.exe -J-Dnetbeans.system_socks_proxy=localhost:9696 -J-Djava.net.useSystemProxies=true starts visualvm, but no processes of external ...
Hi
I want to install satchmo in my virtual hosting, but they dont provide ssh access for it. I want to know if it is possible. As i can see, adding some Satchmo requirements(http://www.satchmoproject.com/docs/svn/requirements.html) to pythonpath in my .fcgi file seems to be working, but some requirements like pycrypto and trml2pdf look ...
how do you decrypt SSH .pcap file that uses Diffie Hellman ecryption. With public and private keys.
We are trying through Wireshark with no luck. please advise.
...
Can anyone help with an odd Ruby Gem problem I'm having - note I've installed many gems in the past and never seen this.
I've downloaded the net-ssh and net-sftp gems using the following commands:
sudo gem install net-ssh
sudo gem install net-sftp
both installed successfully. However when I reference the files within my code I get th...
SSH is installed in NAS, Router is configured to forward the SSH port to NAS.
If anybody has done such thing before then just guide me How to send command over SSH from iphone ?
is there any code available regarding the same ?
Thanks in advance ...
...
This is my situation:
I have a linux server/media center with a windows client.
My goal is to remote control rhythmbox amongst other things.
I've done this using plink (windows based cli ssh toy).
The problem is that starting up an ssh session logging in and sending a command is understandably slow as hell. When I had a w...
I am receiving "INFO: The remote computer disconnected: Protocol error: packet too long: 65580" error, when I trying to execute:
sUpload("server.host.com", "username", "/home/localuser/.ssh/id_rsa", "filename", "");
The file does not get transferred to SFTP server (only zero-byte gets created on the other side). When SFTPing manually ...