ssh username#hostname to ssh hostname [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have an account on my college server and I access it on linux terminal using
ssh {username}#{hostname}.com
I was Wondering if there is a way to access this account only by typing.
ssh {hostname}

Put this into your $HOME/.ssh/config:
Host somealias
HostName example.com
Port 22
User myuser
You can then type ssh somealias and it will actually do a ssh -p 22 myuser#example.com

Like the comments say: Yes, if username is the same on both client and server

Related

Multiple keys for connect SSH Ubuntu 18.04. How to use? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Now I already have ssh key authorization.
How can I add another key (my partner's key) so that my friend can ssh to the server using his key?
you have to add his public key in authorized_keys folder under ~/.ssh folder
.ssh
it should be under that user who is going to login

How can I check what servers I can ssh into? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I've inherited a Linux server that had some ssh privileges setup on it to connect to other Linux servers. The thing is there is no documentation on where those privileges are stored and they are not setup consistently across all machines.
Is there a way to check what accounts and servers I can log into without a password on an existing machine?
As #lurker says, the permissions are maintained on the server. You need look through the /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files on all your servers to find out which hosts can connect.

SSH permission denied (password) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am going to connect to another virtual machine with SSH. but I am not able to login (permission denied (password)). maybe I should set password in target system and I do not know how?
in the destination machine (virtual machine) which try to access it via ssh allow iptables to be able to access type :
iptables -I INPUT 1 -p tcp --dport 22 -j ACCEPT

How do I determine the outgoing port being used by SSH after connecting? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have connected to a remote server using ssh:
ssh -i <keypair> <user#server>
How do I determine the outgoing port that my ssh client is using to connect to the remote server ?
I want to know so that I can setup my VNC Client to use that port...
NOTE: I am not talking about the port on the remote server!
Look at the variable $SSH_CLIENT - the second number is the client port.
Should you want to know it from the client side, you can run this command
lsof -p pid | grep TCP
with pid being the process ID of the ssh command

SSH port forwarding [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm using SSH port forwarding to connect to Windows Remote Desktop from my Linux machine, like this:
ssh -L 50000:192.0.2.10:3389 user#example.com
rdesktop -f localhost:50000 -u user -p password
Now, the first command opens the remote command line on my terminal, so I have to open another terminal to issue the second one. How can I make ssh go on the background so I wouldn't have to open a new terminal?
You can try ssh with -Nf flags. man ssh for more information.

Resources