can nayone tell me why when i log into SHH either using Terminal on a Mac or Putty on a PC it logs me off as soon as i press the space, '/' or '\' key

i'm trying to do cd /usr/bin and it keeps on kicking me out !!!