Results 1 to 6 of 6

Thread: Ssh not working under Fedora Linux

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Ssh not working under Fedora Linux

    HI I am using Fedora OS.. While i tried to use ssh in terminal it is not working and not showing any error also but when i use /usr/bin/ssh it works correctly I dunno why it is happening. Please any one tell me how to link /usr/bin/ssh to normal ssh so that i would use ssh instead of /usr/bin/ssh in terminal.

  2. #2
    Junior Member BoogY's Avatar
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    0

    Default

    You should take a look at your PATH variable.

    If you don't have that path in it just export a new PATH variable in your .bashrc like this:

    Code:
    export PATH=$PATH:/usr/bin
    Do you have openssh installed ?

  3. The Following User Says Thank You to BoogY For This Useful Post:

    aswath10 (8th February 2013)

  4. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by BoogY View Post
    You should take a look at your PATH variable.

    If you don't have that path in it just export a new PATH variable in your .bashrc like this:

    Code:
    export PATH=$PATH:/usr/bin
    Do you have openssh installed ?

    Ya i have Installed openssh... After i giving path also ssh not working.. Only /usr/bin/ssh working...

    My echo $PATH output is
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/sbin:/root/bin
    Last edited by aswath10; 8th February 2013 at 03:43 PM.

  5. #4
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,374
    Thanks
    17
    Thanked 754 Times in 496 Posts
    Rep Power
    10

    Default

    What is the output of the following commands?
    Code:
    type -a ssh
    id
    Are you using sudo or su? If so run it as follows to load path:
    Code:
    su -
    OR
    Code:
    sudo -s
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  6. The Following User Says Thank You to nixcraft For This Useful Post:

    aswath10 (8th February 2013)

  7. #5
    Junior Member
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by nixcraft View Post
    What is the output of the following commands?
    Code:
    type -a ssh
    id
    Are you using sudo or su? If so run it as follows to load path:
    Code:
    su -
    OR
    Code:
    sudo -s

    Thnx for your help Just now I have solved the problem by using which ssh command i found which file ssh referring it is on /usr/local/bin/ssh. Then i checked the file which have zero size i think it may be corrupted some how so i deleted that file and copied ssh from /usr/bin/ssh to /usr/local/bin/ssh now it is working correctly...

    I want to know how ssh referring /usr/local/bin/ssh instead of /usr/bin/ssh normally.. How i can change these functionalists to refer /usr/bin in future???

  8. #6
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,374
    Thanks
    17
    Thanked 754 Times in 496 Posts
    Rep Power
    10

    Default

    Quote Originally Posted by aswath10 View Post
    Thnx for your help Just now I have solved the problem by using which ssh command i found which file ssh referring it is on /usr/local/bin/ssh. Then i checked the file which have zero size i think it may be corrupted some how so i deleted that file and copied ssh from /usr/bin/ssh to /usr/local/bin/ssh now it is working correctly...

    I want to know how ssh referring /usr/local/bin/ssh instead of /usr/bin/ssh normally.. How i can change these functionalists to refer /usr/bin in future???
    Did you installed openssh client using source code or the yum command? Other options are:
    1. Include /usr/local/bin in your PATH.
    2. Create a soft link in /usr/bin directory using ln command.

    /Solved and closed
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Solved] Fedora Linux 14 NFS connection not working
    By shylock_1 in forum Networking, Firewalls and Security
    Replies: 11
    Last Post: 21st January 2013, 05:37 PM
  2. yum not working and internet is not working in init 3 runlevel....
    By amarishvenugopal in forum Networking, Firewalls and Security
    Replies: 4
    Last Post: 25th May 2010, 01:58 PM
  3. Kill command not working in fedora 12
    By ashok1288 in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 6th January 2010, 01:24 PM
  4. Fedora Linux Mozilla Firefox Not Working
    By Goutam17 in forum Gnome
    Replies: 1
    Last Post: 10th August 2009, 10:49 PM
  5. Fedora httpd not working
    By connecties in forum Web servers
    Replies: 2
    Last Post: 29th August 2008, 10:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41