I always struggle with Samba, basically the SSH protocol is way more secure anyway. So I use mostly ssh to communicate with network and remote computers.
My problem is that I might have different usernames on those computers so I will have to remember
berserk@someserver.com and viking60@anotherserver.org etc. and they all might have different ports too.
I could use aliases of course but SSH has a config file that can gather all that information.
If you don't have it then create ~/.ssh/config and chmod it to 600 (not higher).
Now I want my box to understand that I always use viking60 as my username if nothing else is specified.And I want to specify servers with "special" settings.
I start with the specials and put the general info at the bottom - this is important!
Code: Select all
Host ss
Hostname someserver.com
Port 88995
User berserk
to log in to this server i can now simply type
Code: Select all
ssh ss
rather than:
Code: Select all
ssh berserk@someserver.com -p 88995
I also want to save the time of writing viking60@ on all the other servers so I want this to be preset too:
Code: Select all
Host *
User viking60
now I can simply write
Code: Select all
ssh anotherserver
By now my entire ~/.ssh/config looks like this:
Code: Select all
Host ss
Hostname someserver.com
Port 88995
User berserk
Host *
User viking60
I combine this with the password-less secure login (ssh encryption key):
You can't use this with Windows you say?
Yes you can!
http://support.suso.com/supki/SSH_Tutorial_for_Windows
Basically you use Putty.