PDA

View Full Version : anyone know how to use kitty?



waba
29-05-10, 00:24
basically the thread title! iv being trying to use kitty (or putty) to switch of my linux computer on my network from my windows one. problem is, i cant send the shutdown code.
i tried using its ip address, sending my normal ubuntu login and password, but it says access denied. any idea what im doing wrong?

Mr. Grapes
29-05-10, 00:29
not familiar with kitty specifically, but i use putty fairly regularly...
when you launch putty, enter in the ip address of the target comp into the host name field. leave all the settings default (at this point) at SSH and port 22

click open, (or connect) and then login to your linux box.

then issue the shutdown command, using sudo (sudo shutdown -h now) and wait :)

if that's not working, can you give screenshots?

Lorem-Ipsum
29-05-10, 00:32
Two possibilities.

1, do you have the package openssh-server installed on you linux box as you will need this to ssh into the machine. I guess you use ubuntu so it would be

sudo apt-get install openssh-server
You can ssh out of a linux machine without this package but not into it.

2, your firewall is blocking it. To overide the default ubuntu firewall you need to install a different one. I recommend gufw (gui for uncomplicated firewall) then add service ssh port 22 as an exception.


sudo apt-get install gufw

hope that worked for you.

Mr. Grapes
29-05-10, 00:46
are you waiting for user and pass to be prompted at the command line, or entering it into ki/putty? if it's the former that would suggest tat you're connecting to the SSH server, but your user isn't granted SSH login privilege, or some other privilege...

waba
29-05-10, 00:57
hmm i did the first step but it sad connection refused, so i think it must be somethin on the linux end as u said. il fiddle with it tomo and let u know, thanks!

Burn-IT
29-05-10, 01:13
VNC Easier????

Mr. Grapes
29-05-10, 01:23
if it was connection refused, then yeah, do as llawwehttam said to install ssh server.

waba
29-05-10, 23:54
sigh still doesnt work, keeps comin up with the message 'network errror: connection timed out.' i installed the ssh server and gufw as well

Lorem-Ipsum
30-05-10, 00:27
have you opened gufw and set "service ssh port 22" to allowed?

Usually under System>Administration > Firewall configuration

waba
30-05-10, 01:05
i did...but didnt hav a place to put 22, just drop down menus for service, ssh

waba
30-05-10, 01:17
ok i think iv done it - but it does say allow in from anywhere - thats safe right? iv not just opened a massive door have i...:S

waba
30-05-10, 01:23
oooo i think it works now!! thanks! although it is secure right? il just stick with kitty, instead of puttty. is there anything else i can do, besides shutdown - its got me at a kind of terminal screen. for example, i have a floding client running in a terminal, would i be able to check that. or is it just basic commands?

Lorem-Ipsum
30-05-10, 01:53
When you ssh into a computer you need the password so yes it is secure and nobody outside your home can get to it anyway unless you set up ssh port forwarding on your router.

When you ssh into a machine you get a full command line, just as if you have pressed Ctrl+atl+F1 on a linux machine for example. You can run whatever you want to from it. That is why linux admins love it so much for monitoring server that don't have screens for example.

Glad that sorted it for you.

waba
30-05-10, 12:54
thats quite amazin how powerful it actually is - iv seen lots of differnt gui things where you can run full graphics simulations etc remotly on a linux box - i always wondered why they had 2 linux pc's at uni which u are not allowed to switch off....

Mr. Grapes
01-06-10, 10:11
I saw somewhere that one of the main video players (vlc or mplayer, can't remember which) will render in text mode, so you could probably watch videos over the terminal ;) wouldn't be pretty tho...

waba
01-06-10, 13:39
render in text mode? dunno what it is, but dont like the sound of it! by the way, once i did it, it messed up my network - i couldnt share files from my linux box. googled it and found out i had to download an update of the file-share thing, i file (which i cant remeber the name of) to get it working again, and then reconfigure the fire wall. all works fine now though!! except iv been trying out vnc - it loads up with the desktop, but then i cannot click on anything :( however, am happy enough with how it is now - can share files, have a decent firewall (the gufw is nice to configure) AND can switch of my pc remotely :D

Lorem-Ipsum
01-06-10, 13:40
I saw somewhere that one of the main video players (vlc or mplayer, can't remember which) will render in text mode, so you could probably watch videos over the terminal ;) wouldn't be pretty tho...

You can technically pipe any linux app through an ssh tunnel but that only works on linux to linux.

Mr. Grapes
01-06-10, 14:11
yeah, I know - just thought it would be funny watching a text rendered video on a ssh terminal session ;)

waba
01-06-10, 19:09
errr....what would it look like? just a whole load of garbled text?

Lorem-Ipsum
01-06-10, 19:13
no idea, might try it some time just to see. Could be fun. lol

Mr. Grapes
01-06-10, 22:20
well for april fools day, youtube did it...
YFwaV-0XZvc

probably be quite similar...

oxy
02-06-10, 19:52
ssh is awesomez! Use it all the time to admin my home server!

waba
02-06-10, 20:31
i am really impressed with it....am getting a laptop, cant wait to see how much i can fiddle about with it and my pc on the network. gotta love ubumtoo!

oxy
02-06-10, 21:48
ubuntu sucks lol

Lorem-Ipsum
02-06-10, 22:32
ubuntu sucks lol

I have never had problem with ubuntu, what do you use?

andyn
03-06-10, 08:53
I don't really get people who say 'distro X' sucks. For me pretty much the whole point of linux is that you can configure it how you want; they are all basically just installers for the same set of gnu/open source software anyway, all you're really doing when you install a distro is deciding which package management tool you want to use, and maybe which desktop environment (e.g. Gnome, KDE) although even these things are not set in stone.

I've used most major distros since slackware came on floppy disks, and basically linux/gnu is linux/gnu when you scratch the surface. If 'ubuntu sucks' for you that only really shows you don't know how to change it to suit your preference. There might be another distro which suits you better 'out of the box' but really you can take any version of linux and make it work how you want.

oxy
03-06-10, 20:20
I have never had problem with ubuntu, what do you use?


Arch. I just ain't keen on ubuntu's method of changing things from default.

If people like then it's cool if it brings more people into linux.

Lorem-Ipsum
03-06-10, 20:22
I did run arch for a while on one of my servers but the system maintenance started to annoy me a bit. Too many updates + it was a little unstable on my system at the time.

Great OS though and one I would use again if I had the time.

I am really more of a debian guy but ubuntu is nice, quick and easy to set up and use.....

I don't mind using non-standard packages as long as they work. The only distro I stay well clear of is redhat. Cannot stand yum.

oxy
03-06-10, 20:25
Yeh it can be annoying. I would like a distro that is like arch, but something not so bleeding edge and "works out of box" not found one though...

Lorem-Ipsum
03-06-10, 20:27
Do what I did and try as many as you can in virtualbox til you find one you really like: http://distrowatch.com/

I must have tried at least 40+ by now...... lol

oxy
03-06-10, 20:29
Do what I did and try as many as you can in virtualbox til you find one you really like: http://distrowatch.com/

I must have tried at least 40+ by now...... lol


yeh tried most of distrowatch over the years... slim pickings for what I want. Only really arch.