top of page
Search
liansafitter1974

Ssh Rd Rev Jar: A Java SSH API for Creating and Loading Ramdisks



We are using the JSch jar in our application to communicate with server. If we see JSch is not getting enhanced or changed, the last release of JSch was done almost 4 years back. Since there is no activity at JSch, and no one is responding over emails or on their SouceForge ticket, we are thinking to replace the JSch with some other tool that supports SSH2 and/or later.Can someone please suggest few best alternatives for JSch, that can be used to perform the SSH operations.




Ssh Rd Rev Jar



UPDATE::::I installed a new version of ANT from apache and put it in /usr/local and moved the jsch file into /usr/local/ant/lib and it fixes the error, however now I have a new one when I run it with: ant -f deploy.xml restart


Check to see if the screen is installed on your VPS by running, screen --version. This should output the version that the screen is currently running. If screen is not installed, then it will fail to run. Then you need to install screen using your favorite package manager.


Once you have screen installed, log into your VPS and run the command screen which will open a screen session on your VPS through your user. If you want to name the session that you are starting to run screen -S session_name. You should now be able to run your command without it closing when you exit your VPS.


Do you want to leave the Java application running, even after you disconnect? If so, install screen. screen allows you to create persistent sessions allowing you to keep programs/scripts running in their own session even after you log out of SSH.


The deprecated baseName property returns a String, whereas the new archiveBaseName returns a Provider. To get the actual value from the provider, you have to call .get(). The same goes for the version property, which has been replaced by the provider called archiveVersion.


Welcome :)Additionally for those of you new to this.. I recommend connecting with Putty rather than something like WinSCP.If you are using this tool due to Springboard crashing on boot (because of a MobileSubstrate plugin crashing so bad it won't kick into Safe Mode), here are the commands to run to disable all Mobile Substrate plugins (dylibs) and effectively manually kick your phone into Safe Mode. You can turn them back on in the MobileSubstrate area of SBSettings -> More.Connect using Putty, and for devices on iOS 5, run the following. Copy and paste into Notepad so you can see what is on each line incase it word-wraps:fsck_hfs /dev/disk0s1s1mount_hfs /dev/disk0s1s1 /mnt1PATH=$PATH\:/mnt1/bincd /mnt1/Library/MobileSubstratefor file in *.dylib ; do mv $file 'echo $file sed 's/\(.*\.\)dylib/\1disabled/''lsAll your .dylib files should now be changed to .disabled, and your phone will boot successfully next time you boot. If you are brought to the "Connect to iTunes" screen on the next boot, it's a side effect of @msft_guy's tool. Simply run the "Kick Out of Recovery Loop" tool in iREB 5, and you'll be all good.Alternatively instead of the for loop above, you could rename DynamicLibraries folder to something else as I've demonstrated below. This will kick Safe Mode on as well. Change it back with iFile once you've removed the problem child, and respring.mv DynamicLibraries DynamicLibraries2FOR DEVICES ON IOS4, the commands above are slightly different. Replace /dev/disk0s1s1 with /dev/disk0s1. For some reason it was changed in iOS5. Thanks to @msft_guy for pointing this out.. I was lost until he told me :]Thanks for this awesome tool!!


@ReanimatorXP: Small correction: I think it should be '/mnt1/Library/MobileSubstrate/DynamicLibraries'; otherwise you'll rename MobileSubstrate.dylib, and stuff will break because it's the main MobileSubstrate module and all processes are trying to load it when MobileSubstrate is installed.


You totally rock. I've been using your old method of an iphone 3G on and off for emergency fixes, but it's a long drawn out process, since iREB sometimes had issues if I didn't run it from sn0wbreeze. I tried to upgrade at one point, but it didn't work, and I had a solution that did the job. But a one click would be fantastic.For whatever reason, when I tried to run your jar, I get the following error:Could not load mux_redux.dll from C:\Documents and Settings\\Local Settings\Temp\ssh_rd\native\mux_redux.dll; ABORTINGthough I see this file exists. I'm running on an XP machine. The popup is unhelpful with an "INIT FAILED (mux thread)!"Past that, I'd be happy to help confirm/test it works on a 3G (still running 3.1.3).On a slightly related note - my current issue is that it won't boot, even into Safe Mode, I can't ssh in normally. In the past, I've always been able to fix it, but this one has me stumped. If I move away all the dylibs, I get syslog errors about not being able to load particular dylibs (grr).Otherwise, I seem to be getting mostly "Cannot Stack" errors, and ones about being unable connect to lockdown, though I'm not positive either of those is actually the culprit. Any tips, o wise ones?


@fcc14fe0: Confirmed an XP bug (I really need to test stuff before releasing, dammit!), will build a fixed version soon. On a slightly related note - please email logs/excerpts.. If those dylibs are mobilesubstrate plugins, it's worth figuring out who loads them - or just disable mobilesubstrate completely and see if that helps?On old versions, you needed to remove all references to mobilesubstrate from /system/library/launchdaemons/*plist, (EnvironmentVariables/DYLD_INSERT_LIBRARIES subkey); now it seems it's enough to rename /etc/launchd.conf


Gah. Is that really how my account showed up? Whatever.The phone is actually riddled with problems - I mostly use it as a toy these days. Sometime around a year ago the WiFi stopped working, so most of the packages are admittedly rather outdated. Something made me want to try and revisit the perma-Safe-Mode issue it has, which is why I was trying again.It's entirely possible that what caused the issue now was my attempting to update mobilesubstrate to the latest version (I scped over the deb to install). However, I can't reinstall the old one, since when I dpkg --root=/mnt1 -i , it dies on the postrm, because of this:dyld: Library not loaded: /System/Library/Frameworks/Foundation.framework/Foundation Referenced from: /mnt2/lib/dpkg/info/mobilesubstrate.postrmHilarity ensues.The phone itself has too much junk on it, so it's probably a poorly written and old dylib, I think one of them was PwnTunes. But I can upload the syslog next time I power it up into the ramdisk. Is there anywhere in particular you'd like me to send it?


@fcc..: 1. Removing it in a legit way will be tricky, hence you only disable it via ssh, then remove/reinstall once the phone boots2. It's needed for most tweaks, not the jailbreak. Since it injects dylibs to native Apple processes, without it, your phone will behave close to what Apple stock phone does - except you still will be able to run unsigned JB apps such as Cydia (so repairing MS should be pretty easy).


Yup, I can now confirm that your jar works on both Windows XP, and on a 3G. Much faster and simpler than my last method, too.I tried your tip for removing MobileSubstrate, but the first time it just managed to recreate the /etc/launchd.conf, and the MobileSubstrate.dylib symlink. The next time I moved the entire Framework directory, but SpringBoard kept crashing, and it wouldn't boot.Eventually I figured out that the problem was because a couple of symlinks (/Applications and /usr/share) had somehow disappeared. I have no idea how it happened, but recreating them managed to get the phone booting again, so I'm happy.It makes me wonder, though, if any other links might be missing. Is there an authoritative list of ones that get created by the Jailbreak?


@fcc: You didn't disable your MS plugins; apparently one of them is crashing lockdownd and it's all crap from that point.Seriously, just rename your plugins directory (/Library/MobileSubstrate/DynamicLibraries)


I did that earlier - I was trying to slowly re-enable the plugins to get some of them working. I'd been restarting SpringBoard along the way, but I hadn't realized one could crash it at startup. All these used to be around before the issues started a few days ago. But I can try removing the whole thing, again. Is there any simple way to figure out, specifically, which one is crashing lockdownd, or do I have to enable them one-by-one, and restart each time?


Yeah, I know that one. Sadly, it doesn't take into account the vastly different costs of failure and success - in this case, failure means that you have to fail to reboot, boot into ramdisk, fsck, revert, reboot, repeat.Hence why I was wondering if there was some better way to tell. Guess not, so I've got my work cut out for me. *sigh* Thanks anyway.


@fcc: you can weigh ratios proportionally to the costs involved: e.g. if failure is N times costlier than success, add 1/N of the remaining dylibs per try. Which, of course, might be close to 1 in your case ;)


the problem is when i access using winscp , folders mnt1 , mnt2 are emptyand i dont know how to use putty comandsplease let me know the exact commands .i just want to copy the pictures in dcim folder plzzzzzz helppppppppp


I'm stuck on the command portion...My iPod's battery drained and was stuck in the low battery/Apple logo loop and it was refusing to charge and etc.Anyways, I ran everything as instructed and it finished. At the end it said to connect to localhost, which I'm assuming is normal. So I follow the instructions and connect using WinSCP. Now what I'm stumped on is where or how do I enter these commands? I've even installed Putty to try and enter the command, but it says not found. I'm not too familiar with commands via SSH. So if you guys could help me out with that part I'd be so grateful.I'd hate to restore my iPod and lose everything because my old computer crashed with all my music and etc.Thanks a lot if it works you guys are life savers! 2ff7e9595c


0 views0 comments

Recent Posts

See All

Makyaj stolu

Makyaj Stolu: Nədir, Necə Seçmək və Nəyə Faydası Var? Makyaj stolu, hər qadının xeyalidir. Makyaj stolu, makyaj malzemelerini saxlamaq,...

Comments


bottom of page