You are not logged in.
Pages: 1
You know irc, google talk, msn. Well, I discovered another way to chat, over ssh. Me and another server admin talk to each other using this method, here's how to do it:
Find out what terminals the other users are using with the command 'who'
Send a message to them using 'write $user (their terminal)'
They can send a message back to you using the same command.
Enjoy!!
Offline
This is rather old news. the `write' program has been around for a while
Offline
Awesome man, i didn't know that.
I try it and works perfect.
Offline
It's very old, but it's one of those things that people forget about. I guess you could call it a 'secret' or a 'party trick'. Anyway, alot of people have no idea you could do this, so I'll just tell everyone.
Offline
Everything old is new again.
Offline
Offline
If there's only the 2 of you logged in, just use the 'wall' command... Literally just did that 5 minutes ago, lol
Last edited by fukawi2 (2010-02-27 06:39:11)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
The write command has been around since the first UNIX systems
Offline
This is especially fun in i.e screen sessions running irssi or whatever curses application.
Offline
Gives another meaning to "secure" chatting.
But then ofcourse, port 22 is open...
“There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.”-- C.A.R. Hoare
Offline
echo "Hello!" > /dev/pts/1
That sort of thing can work too, permissions allowing. A bit more intriguing IMO
PS. On my machine pts/0 seems to be the KDE system tray notification channel. Using "write" with that is quite amusing!
Last edited by Bralkein (2010-02-27 08:40:37)
Offline
echo "Hello!" > /dev/pts/1
That sort of thing can work too, permissions allowing. A bit more intriguing IMO
If there's only the 2 of you logged in, just use the 'wall' command... Literally just did that 5 minutes ago, lol
The wall manpage leads to the mesg command which enables you to set write permissions to the terminal you're currently using.
Last edited by Runiq (2010-02-27 08:40:22)
Offline
Yes, interestingly if you do "mesg n" then you can't write to yourself, but you can still do the trick with echo.
Offline
Yes, interestingly if you do "mesg n" then you can't write to yourself, but you can still do the trick with echo.
Good to know, thanks!
*sneaks off to harass some co-workers*
Offline
echo "Hello!" > /dev/pts/1
echo 'bye bye' > /dev/pts/* is more fun
Offline
If it's fun you're after...
while :; do dd if=/dev/urandom count=1000 > /dev/pts/*; done
(warning: the above might not be a good idea)
Edit: Before anyone asks, that only works in zsh, in bash it says "ambiguous redirect" so you need an inner for loop. Or so I believe.
Last edited by Bralkein (2010-02-27 14:03:31)
Offline
Gives another meaning to "secure" chatting.
But then ofcourse, port 22 is open...
Port 22 is open only the people you want it to be open, there are many ways to grant (or deny) access.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
If it's fun you're after...
while :; do dd if=/dev/urandom count=1000 > /dev/pts/*; done
(warning: the above might not be a good idea)
Edit: Before anyone asks, that only works in zsh, in bash it says "ambiguous redirect" so you need an inner for loop. Or so I believe.
This works quite well...
for x in `ls /dev/pts/` ; do dd if=/dev/urandom count=1000 > /dev/pts/$x; done;
Or, for synchronity,
for y in `seq 1 1000` ; do for x in `ls /dev/pts/` ; do dd if=/dev/urandom count=1 > /dev/pts/$x; done; done;
(Now that one takes a long time to run, might wanna chuck a &>/dev/null & at the end )
Last edited by gaunt (2010-03-02 04:07:53)
Offline
You could also do this using an SSH tunnel.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Pages: 1