I'd like to write a program which reads user input only from tty, instead of redirected stdin pipes, like passwd and ssh do. Is there any approach?
Many thanks
I don't think I'm missing anything. Then again I'm kind of a newbie.
def GET(self, filename):
name = urllib.unquote(filename)
full = path.abspath(path.join(STATIC_PATH, filename))
#Make sure request is not tricksy and tries to get out of
#the directory, e.g. filename = "../.ssh/id_rsa". GET OUTTA HERE
assert full[:len(STATIC_PATH)] == STATIC_PATH, "bad path"
return open(full).read()
Can Maven Wagon plugin be configured to use a private key for ssh/scp? Everything I've tried still leaves maven to ask me for a password when it gets to the point of scp-ing.
I follow the instruction on http://lucene.apache.org/solr/tutorial.html and I can setup Solr on my PC.
Now when I come to my VPS I cannot overcome the step: $ java -jar start.jar
Afer running that command, search service is available at http: //x.x.x.x:8983/solr/select .
But, Whenever I close the SSH client, the service on http: //x.x.x.x:8983/solr/select is also closed. So I can't search any more.
What should I do? Thanks for any help.
ALTER TABLE can easily take a few days - and during this time there's a non-negligible chance of connection getting terminated due to network problems. Is it possible to start ALTER TABLE (or CREATE TABLE ... SELECT ...; or some other very long running query) and leave it running without keeping connection open all the time?
(the obvious solution of screen + console mysql client won't easily work as there's no ssh running on that server, only mysqld).
Hello,
I have tried to include openssl (I try to implement a ssh client) and I've added libssl.dylib to my XCode Project. But I don't know which header I have to include to use it.
Can anyone show me a tutorial how to use libssl in xcode?
thanks
I am trying to set up an svn repository on a linux server. What permissions do I need to set so users within a group are able to checkout/update/add to the repository using their unix login/password over ssh on TotoiseSVN? I tried setting 770 and it does not seem to work.
Can anyone recommend a good SFTP library to use? Right now I'm looking at products such as SecureBlackbox, IPWorks SSH, WodSFTP, and Rebex SFTP. However, I have never used any SFTP library before so I'm not sure what I'm looking for.
If anyone has used these before, is there any reason why I should go with product "X" over "Y"?
Thanks!
Hello All,
I am getting a 500 error because the owner of some of my files is set incorrectly, its set at 0 0 when the rest are at 510 510?? How do I fix this, I've read something about ssh?
What actually happens to the .box file (which according to the docs is simply a vbox image in tar form, in a particular format) after the first command
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
is executed?
I can't seem to find the filesystem location of lucid32.box after the download has successfully completed...
I am aware it doesn't really matter as
vagrant init lucid32
vagrant up
vagrant ssh
will get me into the vm irregardless.
But I am curious where .box is located.
I tested fairly extensively with Ubuntu 10.04 Beta 2 Server in a VM, and was able to simply copy (read tar x) a cross compiled tool chain from an Ubuntu 8.10 VM. I created the tar myself, which is essentially a lot of stuff in \usr\local.
Now that I've got a bare metal installation of Ubuntu 10.04 proper, the copy isn't working. In particularly, I'm getting the error:
$ arm-linux-gcc
-bash: /usr/local/bin/arm-linux-gcc: No such file or directory
I've got the systems side by side in SSH windows ... any suggestions?
I am uploading files to my shell account using scp. As I need different permissions on the server than on my computer, I'd like to have a way to easily change the permissions upon upload without needing to ssh to the account and change them manually.
a bit of a binary question (okay, not excatly) - but was wondering if one is able to configure cloudera / hadoop to run at the nodes without root shell access to the node computers (although i can setup ssh passwordless login)?
appears from their instructions that root access is needed, at yet i found a hadoop wiki which suggest root access might not be needed ? http://wiki.apache.org/nutch/NutchHadoopTutorial
I've been reading all kinds of tutorials on how to deploy rails apps on heroku from windows.
I've tried installing git, heroku gem, generating ssh keys and setting paths and everything...
I get either public key error (without putty) or fatal no auth found (with putty)...
I've install subversion, and want to write my own script to automate the web deployment.
Is it possible to trigger the script when commiting?
It's neither ssh nor apache based, only rely on svnserve.
And, does it cache it locally?
I ask because I am wondering if it's possible to change the sound of a push notification via SSH, replacing an app sound.
My question is specifically about how the API for push notifications works. Does it send a .caf (aiff) binary file for the phone to play each time?
I can connect remotely to my unix server via SSH, both ftp and shell mode using port 22. However I am not able to do so in Visual Studio. I want to be able to edit files live in a GUI interface.
Any solutions for this?
Thanks!
I have an app that needs to run a command in the terminal.
or i want to run this command in my app.
ssh -N -p 24 -g -C -c des -D 1080 username@server
plz help me . tnx
I'm trying to install mercurial-server, but getting such errors...
$ hg clone ssh://hg@<domain>/hgadmin
remote: mercurial-server: no such repository hgadmin
abort: no suitable response from remote hg!
I've just added my public key to keys/root and refreshed auth..
Anyone know what's the problem?
Sometimes normal FTP doesn't quite cut it... When you need to do secure FTP via SSIS packages, what ONE product would you recommend?
Before answering, please see if someone has already suggested the same thing and, if so, vote it up.
NOTE: Ideally, it needs to handle both SSH and SSL FTP connections, but I'd consider two separate components if it makes the most sense....
I'm trying to clone a local git repository.
The repository's name contains a `:'. This is confusing both me and git. I get the following error:
~/work/c% git clone ../a::b .
Initialized empty Git repository in /home/user/work/c/.git/
ssh: Could not resolve hostname ../a: Name or service not known
fatal: The remote end hung up unexpectedly
How would you escape the `:'? For now I'm just changing the name of the original repository :-)
I'm using zshell...
I find myself doing this a lot:
script/generate migration my_new_migration
.. then select & copy the generated filename, then paste it into vi to actually write the migration.
Is there any way to do this in one step? i.e. when the script/generate migration runs, it creates the file the automatically opens that file in an editor?
(I'm working in an SSH terminal window on linux..)
I have two servers, let's call them first and second. First one is where the real development is done, and second one should be the replica. What I would like to do is put "git push" in post-receive, but there is one problem. Post-receive is executed as the user doing git push to first server, so I can't chmod 600 ssh key with no pass. What is the best practice for this? Thanx!
I have a python script on a linux server that I can SSH into and I want to run the script on the linux server( and pass it parameters entered by the user) and get the output on an ASP.net webpage running on IIS. How would I be able to do that?
Would it be easier if I was running a wamp server?
Edit: The servers are in the same internal intranet.