Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
what are you actually trying to achieve? what does "from host to remote" mean? is there a remote ssh service running? are there any internet connection based things you're not telling us?
what are you actually trying to achieve? what does "from host to remote" mean? is there a remote ssh service running? are there any internet connection based things you're not telling us?
erm ,like i said, i dont know the first thing about linux so what on earth do you want me to tell you.
all i know (from windows days) is that ssh requires port 22 open to the ssh daemon (sshd)
Ive opened a terminal window on my laptop which has wirelss connection to a WAP. the desktop is connected to the same WAP. I can ping both PCs from each other and browe the network.
I require ssh for rsync.
"desktop" is the netbios name for the remote machine im trying to contact from the host ("laptop" is the netbios name for the host)
its not that im not "telling" you anything , its that i dont know how to get what i want working, thats why im here.
ok, so with these both on a single subnet, it should be real easy. most likely is that the host itself is firewalled, or you don't have ssh running. to check the first, there'll be some firewall tool in your system menu or whatever mandriva has in that vein. alternatively, run "iptables -L" as root and that'll list your firewall rules, if there are any. as for the second, run "/sbin/pidof sshd" and if it returns a number, sshd is running.
ok, so with these both on a single subnet, it should be real easy. most likely is that the host itself is firewalled, or you don't have ssh running. to check the first, there'll be some firewall tool in your system menu or whatever mandriva has in that vein. alternatively, run "iptables -L" as root and that'll list your firewall rules, if there are any. as for the second, run "/sbin/pidof sshd" and if it returns a number, sshd is running.
BANG!
user error.
two machines with same static IP.
Duh!
sorry!
so thats working, ssh is okay and rsync works from command line, but...
how do I get rsync to sync remote/host folders at login and logout. bit off topic but you sound a guru
I've created a .bash_login and .bash_logout with the rsyn commands in but they are not run at login and logout for some reason. I've chmod 755 the files and run them from interactive shell, the rsync command is fine and copies files to/from local/remote. just dont work at session login and logut.
how do I get rsync to sync remote/host folders at login and logout. bit off topic but you sound a guru
I've created a .bash_login and .bash_logout with the rsyn commands in but they are not run at login and logout for some reason. I've chmod 755 the files and run them from interactive shell, the rsync command is fine and copies files to/from local/remote. just dont work at session login and logut.
First, make sure you are using Bash as your shell. A
Code:
ps -f
will tell your current shell. You can look at /etc/passwd and see the default shell for your account.
My .bash_profile and .bash_logout do not have the +x protection flag as the files are "source'" (see Bash man page for source command). Do make sure you are the owner. You can also put a like like
I had the same problem before all i did was issue the $iptables -F command
and it flushed all the ipchains and it worked try it i might work. Hope this
helps| £Ä3
I had the same problem before all i did was issue the $iptables -F command
and it flushed all the ipchains and it worked try it i might work. Hope this
helps| £Ä3
ERRR....thanks for taking the time to drop in , but it was user error as stated in the posts .. above.
Oh, BTW .. your signature ... all that about M$ ... food for thought dear colleague ... if you are so learned you surely must be conscious that "a good teacher never criticises" , "if you have nothing good to say, say nothing at all" or how about "if you dont agree with something, then change it. If you can't change it, then change your attitude".
thank you keratos for your opinion about my signature
im really not a m$ basher but i it hate when they say
i don't understand how you did that and they don't
try to research about their problems and don't try to
figure out a way to solve it that is the reason i posted
my signature not to insult or anything but to tell some
linux newbies that you try things first if you can't
figure it out try google and posting in forums some
questions i often find some newbies ask the same
question over and over again and don't bother to take
time to research well there are times that they are busy
i understand but there are people who really don't try
thats all i hope you understand thank you again. i just
hate it when they whine thats all. linux is as easy as
windows if you really take the time to learn and that is
what i want to say thank you. i hope this would start a
flame or anything im not a linux guru its just that
i like linux and im comfortable with it and for me it is
easy thats all. again thanks. please no flames thanks| £Ä3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.