paolyn1106 / terminal-ide

Automatically exported from code.google.com/p/terminal-ide
0 stars 0 forks source link

home folder is not found using "~" in script #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
That steps will reproduce the problem?

1. Generate rsa key using dropbearkey:
# dropbearkey -t rsa -f ~/.ssh/id_rsa  

2. Extract an id_rsa.pub equivalent :
# dropbearkey -y -f ~/.ssh/id_rsa | grep “^ssh-rsa ” >> authorized_keys

3.  Send the key generated to your github account, for instance.

4. Create script "wrap_ssh" in ~/bin/:
#!bin/sh
exec ssh -i ~/.ssh/id_rsa "$@"

5. chmod the script:
chmod 755 wrap_ssh.sh

6. Modify "~/.bashrc" to include :
export GIT_SSH=~/bin/wrap_ssh.sh

7. Try to glone to your git repo using "git clone".

What is the expected output? What do you see instead?

The expected output is a clone of the repo.

The output seen instead is:
error: cannot run 
/data/data/com.spartacusrex.spartacuside/files/bin/wrap_ssh.sh: No such file or 
directory

What version of the product are you using? On what operating system?

TerminalIDE v.1.99 with Android 4.0.3 running on Asus Eee Pad Transformer Prime 
(32 GB) with dock.

Please provide any additional information below.

~/bin/wrap.ssh has the following details:

-rwxr-xr-x  1   10080 
 10080

Doing "sh ./wrap_ssh.sh" from "~/bin/" works as it should.

Original issue reported on code.google.com by antoineg...@gmail.com on 17 Mar 2012 at 6:43

GoogleCodeExporter commented 9 years ago
I assume, this is also the reason for #44 (ssh ignores the ~/.ssh/config file).

Original comment by staschec...@gmail.com on 21 Mar 2012 at 5:04

GoogleCodeExporter commented 9 years ago
I confirm this.

Incidentally, also on TerminalIDE 1.99, Android 4.0.3, Eee Pad Transformer 
Prime.

Original comment by luca.ing...@gmail.com on 24 Mar 2012 at 5:47

GoogleCodeExporter commented 9 years ago
Have you tried using this address to find bash?:
#!/data/data/com.spartacusrex.spartacuside/files/system/bin/bash

(I have my own problems with keys, see issue 26, but at least I seem to be able 
to find the script.)

Original comment by BryanNLawrence on 10 Jun 2012 at 7:02