Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

phoenix.stu

macrumors member
Original poster
Oct 17, 2007
66
0
I was attempting to log in with SSH and try out the screen shot and when I first attempted it told me that there was an error when I tried to use the screen shot command. So I forgot that I needed to install SSH on the touch.
Well.... Before I installed it on my Touch and I first logged in, it matched my fingerprint between the two. AFTER I installed the SSH on the touch and tried to log in again it gave me this
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b0:0a:e1:4a:35:63:5a:f4:79:9a:b3:64:36:3c:68:d4.
Please contact your system administrator.
Add correct host key in /Users/stuartwhitehead/.ssh/known_hosts to get rid of this message.
Offending key in /Users/stuartwhitehead/.ssh/known_hosts:2
RSA host key for 10.0.2.2 has changed and you have requested strict checking.
Host key verification failed.

Could someone please tell me the exact command that I must enter in order for it to recognize and allow me to access my touch. By the way, I am not sure if it matters but I have a mac.

Thank you in advance.
 
I was attempting to log in with SSH and try out the screen shot and when I first attempted it told me that there was an error when I tried to use the screen shot command. So I forgot that I needed to install SSH on the touch.
Well.... Before I installed it on my Touch and I first logged in, it matched my fingerprint between the two. AFTER I installed the SSH on the touch and tried to log in again it gave me this


Could someone please tell me the exact command that I must enter in order for it to recognize and allow me to access my touch. By the way, I am not sure if it matters but I have a mac.

Thank you in advance.

It's pretty simple. Open a terminal window and type
Code:
cp /Users/stuartwhitehead/.ssh/known_hosts /Users/stuartwhitehead/.ssh/known_hosts.SAFE
(This will create a safe copy of your file in case anything should go wrong - it's an optional step, but worth doing)
Code:
/Applications/TextEdit.app/Contents/MacOS/TextEdit /Users/stuartwhitehead/.ssh/known_hosts
This will open TextPad with the appropriate file ready for editing. *

Find the line that corresponds to your Touch (should start with "10.0.2.2") and delete the line completely. Once you've saved the file, SSH should then let you connect without issue.

*There may be a simpler way to do this, but I've not been a Mac user long and don't know if you can get the File Open dialog to display hidden files (.ssh is a hidden folder)
 
first of all, let me say thank you for your prompt response. That did the trick.

Now on to one more question if you happen to know please.

I managed to log in with ssh and I added the command
ssh /Applications/screenshot
and I tried this
ssh ~/Applications/screenshot

This is what it spit out this time.
Last login: Fri Nov 2 01:16:27 on ttys000
116-64-134-88:~ stuartwhitehead$ ssh -l root 10.0.2.2
root@10.0.2.2's password:
Last login: Fri Nov 2 01:42:00 2007 from 10.0.2.1
# ssh /Applications/screenshot
ssh: /Applications/screenshot: No address associated with hostname
# ssh ~/Applications/screenshot
ssh: /var/root/Applications/screenshot: No address associated with hostname
#

Not quite sure what to put in now. I am sorry and thank you in advance for any help.

phoenix
 
first of all, let me say thank you for your prompt response. That did the trick.

Now on to one more question if you happen to know please.

I managed to log in with ssh and I added the command
and I tried this

This is what it spit out this time.


Not quite sure what to put in now. I am sorry and thank you in advance for any help.

phoenix

Hmmm. I'm not sure what you are trying to do, but I suspect you're trying to run an application on the Touch called /Applications/Screenshot

I don't have that installed on mine, so I don't know if it is something that is on your touch or not. Either way, you don't need to type "ssh" at the start of the command.
 
I am trying to do this -Screenshots with SSH


I tried it without the ssh and this I have the file in my app folder.

Last login: Fri Nov 2 01:45:42 on ttys000
116-64-134-88:~ stuartwhitehead$ ssh -l root 10.0.2.2
root@10.0.2.2's password:
Last login: Fri Nov 2 01:46:03 2007 from 10.0.2.1
# /Applications/screenshot
About to snap screen.
2007-11-02 02:43:15.631 screenshot[688:d03] Couldn't register with bootstrap server unknown error code (0x44f); failing...
688: ABORT: Unable to register "UnknownPurpleApp" port, 1103 unknown error code
zsh: abort /Applications/screenshot

#

I have the file in my app folder. With the exception of my problem earlier that you assisted me with I have done everything as described.
Many people have seemed to be able to do this without a hitch and I just can't grasp it.
The reason that I want this rather than the one with dock.app is that you can snap a pic of the start up screen with the sliders and the battery bar.
 
Did you try:

Dock.app
To take a screenshot install Dock.app. When you have Dock.app installed you will notice a yellow sunburst in the bottom right of your iPod Touch's screen.
Drag from the bottom right upwards to switch between all your applications. The 2nd from last icon is 'Screenshot', release your finger when on the icon and navigate into your iPod Touch by SSH into /tmp/

There should be an image called 'foo_0.png' around 325 KB, download this to your desktop for the screenshot you've taken on that page. SUGGESTION: delete the image off /tmp/ once you have downloaded it to your desktop.
 
Did you try:

Yeah, I did. Thanks though. I already have the dock.app one installed. The problem with that one is that I can not take a snapshot of the front page when you take the touch off of sleep. I want to be able to take pics of my new battery and slider images. Can't do that with the dock.app.


That is why I would like to get the one I listed above in my previous post to work.
 
Sorry to bump this up. I just really need some help with this.

Please chime in if you can.

Thank you in advance.
 
I tried not to be too persistent however, I have waited it out for a few days.

Doesn't anyone have a solution to my above mentioned problem? It would be very much appreciated.

Thank you
 
I would try deleting the screenshot file the Applications folder and download it again and put it back. Maybe you have a bad file. Thats the only suggestion I have.
 
After you transferred the screenshot program to the touch, did you change the permissions? If not, while you are connected to your touch with ssh, do this (assuming you transferred the program to /Applications"):

chmod 755 screenshot [press return]

Then, to run it, you type:

./screenshot [press return]

The screenshots taken are saved in /tmp, if I recall correctly. You can then transfer that onto your computer with any secure FTP program.
 
After you transferred the screenshot program to the touch, did you change the permissions? If not, while you are connected to your touch with ssh, do this (assuming you transferred the program to /Applications"):

chmod 755 screenshot [press return]

Then, to run it, you type:

./screenshot [press return]

The screenshots taken are saved in /tmp, if I recall correctly. You can then transfer that onto your computer with any secure FTP program.


Thank you for the help however those commands do not work.
 
Hello and thank you for your effort.

Using the command that you gave here is what was said.
Last login: Tue Nov 6 00:34:39 on ttys000
116-64-134-88:~ stuartwhitehead$ ssh root@10.0.2.2
root@10.0.2.2's password:
Last login: Tue Nov 6 00:34:57 2007 from 10.0.2.1
# $ /Applications/screenshot
zsh: command not found: $
#

The closest I came was before when I used the method in Post #5 in this thread. The only difference in that method and your method was that you method had the "$" added.

I am stumped. Could it possibly be because I have the screenshot app in use from the Dock.app? Should I perhaps, uninstall it first?



**EDIT**
I figured, what the heck and uninstalled the Dock.app and low and behold it worked. Strange. Guess the two can't coincide.

Anyhow, here is the command that finally worked.
# ssh root@<my ipod's IP>
Connecting...

Password: ******
# /Applications/screenshot

As a note, I tried it with the "$" first however it still gave me the same command not found error so I tried it like the above method that I mentioned and it worked.

Thank you everybody for all of your assistance. I am very grateful!!

Topic Solved
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.