ssh/known_hosts file is a local user database. It stores details of all
remote servers you connected from the system. When you are connecting to
which we have to type yes). Then, it stores some related information of
kind of attacks the next time you connect to the same server. If the
stored information matches, you will be allowed to login without issues.
Usually login attempts to systems are logged in /var/log/auth.log. For
SSH logins, you can go a grep on that file. grep "sshd"
time and IP for me on my debian based servers.
Post by Nooh PulakkalThanks Mr.Balashankar for sharing the links.
I think you havent understood my question. I am not at all asking
about authentication at all. Those can be done by public and private
keys. For no password login or root login access, we can edit the ssh
configuration file,say /etc/ssh/sshd_conf for RHEL6.
I am not asking such deeper things. I was just asking why the
ssh/known_hosts not storing all the accessed IP details just like
terminal history.
In RHEL6,when I am trying to connect from different IPs to same
server, the server is not showing all the IPs connected now or
previously connected IPs in the same file. It seems to be logically
ambigous to sort out IPs connected. What is the idea used there ?
Hi,
~/.ssh/known_hosts file is used for server authentication i.e to
confirm that we are actually connecting to a known server rather
than a rogue one trying to pass off as the right one.
To let remote pcs ssh to your server (I am assuming you need
passwordless login), you need the file ~/.ssh/authorized_keys
which contains the ssh keys from client machines and some keyring
agent in the remote servers which caches the ssh passphrase.
Check this link -
http://security.stackexchange.com/questions/20706/what-is-the-difference-between-authorized-key-and-known-host-file-for-ssh
PS : I couldn't understand how this is related to the original
thread. That was talking about the history file right?
Is there anyway to get all the remote pcs ssh to my server?
~/.ssh/known_hosts showing only some IP infos. It might be due
to the same issue. Right?
Tanx...Ershad..Got it
http://northernmost.org/blog/flush-bash_history-after-each-command/comment-page-1/index.html#comment-640
Hi Shamlik,
Which shell are you using in gnome-terminal? If it's
bash, you could
find the entire history in ~/.bash_history file and
it's searchable
through ctrl+r. Just that history gets written when
you close the bash
session.
Try this[1] if you would like to update history on
every command execution.
[1] http://askubuntu.com/a/80380
Cheers.
On Fri, Mar 20, 2015 at 8:51 PM, shamlik t
Post by shamlik tFriends,
I use tabs in gnome terminal and .
each tab maintains its own history.
It is very tough to find a previously ran command,
as I have to open the same number of tab, to find it
in history.
Post by shamlik tWhy it is designed so?
How to merge all the tab's commands in single
history file,
Post by shamlik tso that we can access the history from any shell.?
--
--
You received this message because you are subscribed
to the "MES-FSUG"
Post by shamlik tgroup.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
is at http://gnulabs.org/mesce/
---
You received this message because you are subscribed
to the Google Groups
Post by shamlik t"MES-FSUG" group.
To unsubscribe from this group and stop receiving
emails from it, send an
Post by shamlik tFor more options, visit
https://groups.google.com/d/optout.
--
Regards,
Ershad K
http://ershadk.com
--
--
You received this message because you are subscribed
to the "MES-FSUG" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
is at http://gnulabs.org/mesce/
---
You received this message because you are subscribed
to the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving
emails from it, send an email to
For more options, visit
https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to
the "MES-FSUG" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
at http://gnulabs.org/mesce/
---
You received this message because you are subscribed to
the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the
"MES-FSUG" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
http://gnulabs.org/mesce/
---
You received this message because you are subscribed to the
Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails from
For more options, visit https://groups.google.com/d/optout.
Is there anyway to get all the remote pcs ssh to my server?
~/.ssh/known_hosts showing only some IP infos. It might be due
to the same issue. Right?
Tanx...Ershad..Got it
http://northernmost.org/blog/flush-bash_history-after-each-command/comment-page-1/index.html#comment-640
Hi Shamlik,
Which shell are you using in gnome-terminal? If it's
bash, you could
find the entire history in ~/.bash_history file and
it's searchable
through ctrl+r. Just that history gets written when
you close the bash
session.
Try this[1] if you would like to update history on
every command execution.
[1] http://askubuntu.com/a/80380
Cheers.
On Fri, Mar 20, 2015 at 8:51 PM, shamlik t
Post by shamlik tFriends,
I use tabs in gnome terminal and .
each tab maintains its own history.
It is very tough to find a previously ran command,
as I have to open the same number of tab, to find it
in history.
Post by shamlik tWhy it is designed so?
How to merge all the tab's commands in single
history file,
Post by shamlik tso that we can access the history from any shell.?
--
--
You received this message because you are subscribed
to the "MES-FSUG"
Post by shamlik tgroup.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
is at http://gnulabs.org/mesce/
---
You received this message because you are subscribed
to the Google Groups
Post by shamlik t"MES-FSUG" group.
To unsubscribe from this group and stop receiving
emails from it, send an
Post by shamlik tFor more options, visit
https://groups.google.com/d/optout.
--
Regards,
Ershad K
http://ershadk.com
--
--
You received this message because you are subscribed
to the "MES-FSUG" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
is at http://gnulabs.org/mesce/
---
You received this message because you are subscribed
to the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving
emails from it, send an email to
For more options, visit
https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to
the "MES-FSUG" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
at http://gnulabs.org/mesce/
---
You received this message because you are subscribed to
the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the
"MES-FSUG" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
http://gnulabs.org/mesce/
---
You received this message because you are subscribed to the
Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails from
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Balasankar C
http://balasankarc.in
"Freedom is never easily won, but once established, freedom lasts,
spreads and chokes out tyranny." - Trent Lott
--
--
You received this message because you are subscribed to the "MES-FSUG" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net
http://gnulabs.org/mesce/
---
You received this message because you are subscribed to the Google
Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails from it,
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the "MES-FSUG" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/mes-fsug?hl=en
MESCE is at http://gnulabs.org/mesce/
---
You received this message because you are subscribed to the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the "MES-FSUG" group.
For more options, visit this group at http://groups.google.com/group/mes-fsug?hl=en
Our IRC channel #mes-fsug at irc.freenode.net. Webpage for GNULabs @ MESCE is at http://gnulabs.org/mesce/
You received this message because you are subscribed to the Google Groups "MES-FSUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mes-fsug+***@googlegroups.com.