LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sshd (https://www.linuxquestions.org/questions/linux-newbie-8/sshd-879766/)

amartlk 05-10-2011 01:02 AM

sshd
 
hi

i want to change default ssh port 22 to another port i make changes
in etc/ssh/ssd_config here add port 4827 and also changes in etc/services ssh 4827/tcp # SSH Remote Login Protocol
ssh 4827/udp and restart service sshd restart, when i try to connect as 192.16.1.2 4827 it ask for password but after entering password shows error bash 4827 command not found

Amar

zhjim 05-10-2011 01:30 AM

Your syntax is just wrong. use
Code:

ssh -p 4827 user@192.168.1.2
ssh interprets everything after the hostname as a command to be run. Thats also why you get the error with command unkown.

amartlk 05-10-2011 01:50 AM

Thanks it work for me

AMAR


All times are GMT -5. The time now is 05:54 PM.