Results 1 to 10 of 12
I would like to only type the ip into my terminal and it should autossh into that server, is this possible?
ex
[vikrant.r@localhost tasks]$ 192.168.2.15 -enter should log me into ...
- 04-11-2008 #1Just Joined!
- Join Date
- Oct 2006
- Location
- Mumbai,India
- Posts
- 81
autossh by just typing the ip
I would like to only type the ip into my terminal and it should autossh into that server, is this possible?
ex
[vikrant.r@localhost tasks]$ 192.168.2.15 -enter should log me into the server
- 04-11-2008 #2
You can do
at the destination login user@system which will create two files in the user's home folder in ~/.ssh/.Code:ssh-keygen -t dsa
Copy the contents of the .pub file into your system, at your home folder
inside file
~/.ssh/authorized_keys
thats all
you can login using just
ssh <ip>
- 04-11-2008 #3Just Joined!
- Join Date
- Oct 2006
- Location
- Mumbai,India
- Posts
- 81
i dont want to type ssh i just want to type the ip and it shld login
- 04-11-2008 #4
create a shell that is just an ssh prompt, other than that I can't think of anything.
- 04-15-2008 #5Just Joined!
- Join Date
- Oct 2006
- Location
- Mumbai,India
- Posts
- 81
any other suggestions perhaps? besides creating a shell
- 04-15-2008 #6
other way is simply to add an alias in your bashrc file i.e.
alias 57.7.111.111='rsh 57.7.111.111'
now, just give 57.7.111.111 at $ prompt and you will be in. You can also specify ssh instead of rsh but that will require passwd to login to that box. If you even don't want to enter the passwd, research on Raghwan's hint.
- 04-15-2008 #7
- 04-15-2008 #8
is it really that much extra work to type ssh before the ip?
- 04-16-2008 #9
he needs to save characters for future use !!
- 04-16-2008 #10Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
I think that the zsh shell can run *any* file by just typing its name (it will run the correct application and open the file).
Opening an ip is not quite the same, but maybe some zsh guru around here knows of a way to do this, in case it's even possible, which I don't really know.


Reply With Quote
