Ask Your Question

SSH not working anymore after attempt to change the color of sessions in .bashrc

asked 2014-08-31 01:28:27 -0500

updated 2014-08-31 11:32:52 -0500

mether gravatar image

Does anyone know what happened to ssh on my system?

I tried to use a program "colorized" to change the colors for ssh sessions, in my Konsole terminal.

I used this in .bashrc:

alias ssh='colorize -- ssh'

Now when I run the command "ssh..." it just hangs with no output or live, and -vvv option doesn't work either. :-(


It started working again by itself, I would like to know why this happened and what that alias would do to ssh, is it possible to use it together, is it a security issue?

I was trying to change the color shceme/Background/Change ssh sessions to make it really visual that it was a remote session/shell.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-31 06:10:56 -0500

Rabin gravatar image

what you did was to replaced your ssh command with the command colorize -- ssh. colorize is perl script which read from STDIN and colorize the output

From the man page i don't see and option to run colorize with -- you just opened pipe which will read from STDIN manuly.

For changing the "color" of a remore ssh session you shuld cosumize you $PS1 variable so that for remote sessions you whould have a diffrent prompt color .

edit flag offensive delete link more


@Rabin Thanks for the answer, this was a command/alias I took from a website, it was a Ubuntu website so either it is only supported in Ubuntu, or it is some wrong information. Thanks for the effort.

somethingSomething gravatar imagesomethingSomething ( 2014-08-31 13:50:49 -0500 )edit

Question Tools

1 follower


Asked: 2014-08-31 01:28:27 -0500

Seen: 195 times

Last updated: Aug 31 '14