Keep an eye on your SSH server with this short command.

Oct 11

Setting up and running your own little SSH server is not really hard. Just punch in sudo apt-get install openssh-server on your Ubuntu command line and you’ll have a server that allows you to run remote commands, send over files via SFTP or even forward graphical applications over X-Forwarding.

R2

But when you open up a window to the internet, it might be a good idea to keep an eye on any nosy people who might come knocking. A good tip is NOT to run your server on the default port (22) and poke it up to a random port over 1024 so it won’t  be obvious to any scriptkiddie you are running an SSH server. But just to be safe its nice to keep an eye out too. Every system access is logged in /var/log/auth.log but there is a ton of info in here. But with this one simple command you can not only sort out the messages that talk about your SSH server, you can also “follow along live”

sudo tail -F /var/log/auth.log | grep sshd

The output will generate a cool scrolling textfile with all the failed and approved login attempts, the usernames of who is loggin in and when they connect and disconnect.  The command is simple .. but the output might be just what you need. 

Related Posts

Kc308 : "Reviewing the Nexus 7"

Aug 30

We take a look at one of the hottest devices currently on the market and stare down the bellybutton of the Google Nexus 7. After looking at hardware software and specs its time to answer the important questions : How can this technology work for us AND what will it do to the market. A different approach at a product review this time that will surely enlighten you in some way or form. Spice it up with some great feedback from the voicemail and twitterspheres and we have another Knightwise.com podcast .. in the can.

Shownotes

Related Posts


Kc305 : "Running your own home Linux Server".

Jun 14

In this episode we give you some ideas and possibilities when it comes to building your own home Linux server. While putting an old clunker back to good use or using a VM, we give you tips and tricks on using the command line, CLI applications, web based interfaces remote desktop sessions or even terminal servers. Let technology work for you and build your own home linux server with this podcast as your loyal companion.

Shownotes.

Related Posts


The Knightcast Episode 35 : Remote Domination.

Aug 20

Remote
The Knightcast Episode 35 : Remote Domination. 

Direct link to the show :

https://knightwise.com/podcasts/kc_2082006.mp3

Summary. 

Don't even leave your seat for episode 35 of the Knightcast : Remote domination. We talk about the tools of the trade how to remote control every PC that you own. With tips, howto's and cool programs we turn your computerroom obsolete and let you control everything from your couch. With music from Noplasticinside its another Info- Loaded Knightcast.

Promo : Miketechshow

Download the Shownotes in PDF.

 

{mos_sb_discuss:5}

Related Posts


The pro

Jul 25

handcuffsThe word alone sounds repulsing to me.

Proprietary : The word alone sounds repulsing to me. Being an open source – cross platform fetishist, anything that is locked into the boundaries of a certain manufacturer is probably comparable to the used toilet paper of satan himself. Anything that veers away from open standards and locks users into the steel confinements of a certain brand or manufacturer is no worse then the sing sing prison. Just think about it. Special document formats that implore you , no , FORCE you to buy a certain peace of software in order to open them. A peace of hardware that only has drivers for a certain operating system. Or an on line music store that will only allow its content to be played on one brand of players. Anything that promises advanced functionality at the cost of the consumers liberty to buy what he wants is something Cruellla Devill would probably love. I hate proprietary stuff. Whether its office document formats, Itunes-music-store restricted music, or even some fancy sort of USB connector variation that will only fit on that one stupid dell machine. If it ain’t open , I don’t want it ! I scream in defiance. What good is a fantastic slideshow made in powerpoint if I can’t open it on my mac, Why the frack would I buy a song on Itunes if i can’t play it on my cheap ass mp3 player, Why in hells bells would  I encode my music in WMA format if my linux machine won’t be able to read it.

Oh ow , caught in the net.

But , willing or unwilling, i have slipped into the net of these close quarters and have witnessed the power of this fully operational battlesta.. erm .. proprietary software. This week I installed my old Mac Mini as a server at home. Giving it some extra firewire storage-space I bestowed upon it the tasks to store all my pictures and music , and do some video capturing on the side. Your basic run of the mill media server. Using a great program called SHAREPOINT i was able to share any folder I liked using the universal SAMBA protocol. For reasons beyond my comprehension mac does not allow sharing just any folder, just the home folder. Probably to prevent you from turning your mac into a file-server , but hey , come on .. its MY MAC remember ?  Nevertheless I got it working nice and dandy. Writing a little logon script with automator gave my other macs access to the shares and that was that. Then I stared using Iphoto and Itunes on the mac server to manage the pictures. That way a boring server was also good for some music playing and photo slide-showing. Think of my mac mini as a power-station (not quite a server , but not quite a workstation). When I got downstairs on my macbook (after connecting to the shared folders using my Ubuntu workstation) i booted up my Itunes and saw…. The mac mini’s music directory.. magically shared through the wonders of AFS (apple file-sharing system). And behold : The Iphoto library on the server was available as well ! And it was surprisingly fast. Sharing files (streaming video) between macs using AFS was faster then doing the same thing with my linux machine over the open source standard of SAMBA.

Its magic .. damn you ! 

So there you have it . By some technology indistinguishable from magic my macs had talked to each-other and decided on a little functionality to brighten up my day: Share pictures and music just like that. Wether the other kids in the room ( my Ubuntu station and Windows machine) could join or not (they couldn’t) was none of their concern. Too bad really. I mean , I feel good about the fact i can share pictures and music from a centralized place .. but am appalled at the fact that somewhere somehow I have fallen for the proprietary marketing trick. It comes with its advantages of course. But the next time I sit behind my Ubuntu workstation … and curse for not being able to access my Itunes .. I know i’ll curse : Damn you proprietary devil !

 To top it of ? A video for you guyz 🙂

 

Related Posts