When I ssh into my phone via SSHDroid, it sets me at the following path by default.


I can use cd to maneuver around but it causes problems when I try to use scp because files are obviously not stored in this directory. It there anyway to change this setting?


try pushd and popd, [not exactly an answer to your settings question but, it might work] assuming you have root privilege.

Okay for this example i am starting in /storage/extSdCard and need to copy target tass.txt from /sdcard/tess

extSdCard # HERE=$PWD                                                                                                                                                                                                 
extSdCard # echo $HERE                                                                                                                                                                                                
extSdCard # pushd /sdcard/tess                                                                                                                                                                                        
~/tess /storage/extSdCard
tess # pwd                                                                                                                                                                                                            
tess # ls $PWD                                                                                                                                                                                                        
tess # cp * $HERE                                                                                                                                                                                                     
tess # popd                                                                          
extSdCard # ls tass.txt
extSdCard # popd                                                                          
tmp-mksh: popd: directory stack empty
extSdCard #  
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.