have set up a bash alias named file_repl
. It works entirely when I log in using ssh command. However, my bash aliases are not running over ssh, for example: $ ssh email@example.com file_repl
bash: file_repl: command not found
How do I run bash shell aliases when I use ssh command?
want to disable ssh clients from accessing using the password and only allow ssh login using SSH keys. How do I disable password authentication for SSH on Linux operating systems?
ow do I execute a script on remote server called server2.example.com from my PC? How to run a shell/python/perl script on remote Unix-like systems?
Under Windows it is pretty easy to find out VMware server version. How do I find out remote vmware server version using ssh client running under RHEL / CentOS Linux 5.x?
I’ve couple of remote servers and I’d like to access few admin only application running on port 10000 and 3001. My firewall only allows port 80, 443, 25, 22 and 110 for public access. Do I need to open port 10000 and 3001 for everyone using firewall? How do I access my admin only apps without opening port 10000 and 3001?
Q. How do I use ssh client program in a shell script under UNIX or Linux operating system?
Continue reading “How To Use SSH in Unix or Linux shell script”