---
title: "Discussion on \"SSH Bookmarks\" | Hashnode"
description: "Discussion on \"SSH Bookmarks\". For years I've been using aliases or custom commands to make it easy to log into remote servers with SSH. Instead of having to type ssh someuser@123.456.789.012 I could just write ssh-foo, allowing me to login way faster. An example of such a command..."
url: "https://hashnode.com/posts/ssh-bookmarks/583ff3ac20388d62ae0c532b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [SSH Bookmarks](https://hashnode.com/post/ssh-bookmarks?utm_source=hashnode&utm_medium=feed)

For years I've been using aliases or custom commands to make it easy to log into remote servers with SSH. Instead of having to type ssh someuser@123.456.789.012 I could just write ssh-foo, allowing me to login way faster. An example of such a command...

Dec 1, 2016 · hashnode.com  
Updated May 29, 2017  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#linux](https://hashnode.com/tag/linux)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[Stephan de Vries](https://hashnode.com/@Innocent)

@Innocent · The Netherlands

  
[View profile](https://hashnode.com/@Innocent)

Full stack developer, enthusiastic about new technologies.

## Responses 4

Markdown supported · ⌘↵ to post

[Matthieu Lemoine](https://hashnode.com/@MatthieuLemoine)

[Dec 2, 2016](https://hashnode.com/posts/ssh-bookmarks/583ff3ac20388d62ae0c532b/comment/5841a698c0e3c16cc281ae37)

I discovered the ssh config file too several months ago. I made a gist (with ssh proxy) because I always forget the syntax.

[gist.github.com/MatthieuLemoine/033c54efa5b837c1b…](https://gist.github.com/MatthieuLemoine/033c54efa5b837c1bb65f401e74c6bc2)

[Stephan de Vries](https://hashnode.com/@Innocent)

[Dec 2, 2016](https://hashnode.com/posts/ssh-bookmarks/583ff3ac20388d62ae0c532b/comment/5841a698c0e3c16cc281ae37#reply-5841f83297063da359fe2c9e)

Nice!

[Vasan Subramanian](https://hashnode.com/@vasan)

[Dec 5, 2016](https://hashnode.com/posts/ssh-bookmarks/583ff3ac20388d62ae0c532b/comment/584539b30d227ab5bd0cf13f)

Further, I discovered how you can use your own identity even _after_ logging into your server. For example, if you use ssh for git, and wanted to be yourself when doing, say, a git push from a remote server, you can use the following in your configuration file:

```
ForwardAgent yes
```

A note of caution. On the Mac, a reboot causes the ssh-agent to forget the keys available for forwarding, so after every reboot, you will also have to execute:

```
$ ssh-add ~/.ssh/id_rsa
```

To check whether your key is already present in the key list, you could do:

```
$ ssh-add -L
```

[Uğur Özyılmazel](https://hashnode.com/@vigo)

[Dec 3, 2016](https://hashnode.com/posts/ssh-bookmarks/583ff3ac20388d62ae0c532b/comment/584271ba452cc6d22341a79f)

Please post this kind of newbie/101 stuff elsewhere...

[Mev-Rael](https://hashnode.com/@mevrael)

[Dec 1, 2016](https://hashnode.com/posts/ssh-bookmarks/583ff3ac20388d62ae0c532b/comment/584000bd5b4649d107dd5a8a)

I also have a lot of `ssh-shortprojectordomainname` aliases. These different logins, IPs and ports are complicated to remember and to write every time. Usually I am also logging into a specific directory.

[Stephan de Vries](https://hashnode.com/@Innocent)

[Dec 1, 2016](https://hashnode.com/posts/ssh-bookmarks/583ff3ac20388d62ae0c532b/comment/584000bd5b4649d107dd5a8a#reply-584010d55b4649d107dd5aa8)

I don't think the SSH config file allows logging into a specific directory on the server. So for such cases an alias is probably best! :)
