# Need a little help with this, command line

**URL:** <https://forums.kodeco.com/t/need-a-little-help-with-this-command-line/65402>\
**Category:** macOS\
**Created:** [March 24, 2019, 7:27pm UTC](https://forums.kodeco.com/t/need-a-little-help-with-this-command-line/65402 "2019-03-24T19:27:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lac\_ekim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lac_ekim/32/102075_2.png) [@lac\_ekim](https://forums.kodeco.com/u/lac_ekim)\
**Post date:** [March 24, 2019, 7:27pm UTC](https://forums.kodeco.com/t/need-a-little-help-with-this-command-line/65402/1 "2019-03-24T19:27:49Z")

</div>

Writing a script to backup my server. I have the ssh key made, I have the file system figured out on the server and the proper rsync command.

here is the a pic of the command line with me connected to the server

 ![55%20AM](https://files.chunter.kodeco.com/original/3X/c/2/c26c6735d00fe29a7b5d777a245f9d5ee8509e77.jpeg)

here is the script I want to use I think

#!/bin/bash

# Default port

rsync -avz -e ssh

# Non standard port

rsync -avz -e “ssh -p 2244”

please help me lol

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 1, 2019, 11:01pm UTC](https://forums.kodeco.com/t/need-a-little-help-with-this-command-line/65402/2 "2019-04-01T23:01:09Z")

</div>

@lac_ekim Do you still have this issue?

---

<div class="post-metadata">

**Author:** ![robertomachorro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/robertomachorro/32/111603_2.png) [@robertomachorro](https://forums.kodeco.com/u/robertomachorro)\
**Post date:** [July 14, 2019, 6:41pm UTC](https://forums.kodeco.com/t/need-a-little-help-with-this-command-line/65402/3 "2019-07-14T18:41:36Z")

</div>

You mentioned that you have “the ssh key made”, I’m assuming that you copied your public key into the _~/.ssh/authorized\_keys_ files at your remote?

What happens when you do a regular ssh? Do you still get prompted for a password or not?

The remote .ssh folder usually contains files similar to the ones below:

> ~/.ssh$ ls -a  
> . … authorized\_keys id\_rsa id\_rsa.pub known\_hosts

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [September 7, 2019, 11:27am UTC](https://forums.kodeco.com/t/need-a-little-help-with-this-command-line/65402/4 "2019-09-07T11:27:51Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
