[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Open SSH and Telnet problems [RaQ3]



>>>> 3)  Is there any way to issue shell commands as root from
>>somewhere else?

I am coming in on this one late, my apologies if I am off-base here 
since I can't find the original post.
If you have already installed SSH2 on the server and something is 
blocking you out, AND you have another server at your disposal that 
is running SSH2, you can go from one machine to the other via command 
line and su to root.

openmachine #ssh -l admin xxx.xx.xxx.xx   
(where xxx.xx.xxx.xx is the IP of the machine that's closed to you. 
the -l is an L, lowercase.)
You'll get a note that the closed machine's keys are not cached, do 
you want to cache them? Type "yes" (no quotes) and hit enter.
You'll then be prompted for admin's password. Note that this is admin 
on the CLOSED machine. Enter that password and hit enter.

Now you're on the command line of the closed machine, as admin.
Su to root and you're all set.

Note: if you've got SSH running on a funky port, you'll have to 
specify that in the original command with the -p flag. Type
ssh --help
for all of the possible flags.

On the other hand, if you don't have access to another machine with 
ssh, these won't help you.
I'd be happy to go in and kick something to give you access again, as 
I have 2 machines at my disposal with ssh running. Contact me 
off-list if you'd like me to do this.
--
CarrieB
Thanks for your quotes!
I'm now trying to find a way to randomize them automagically so I can 
use them all...