I work on Ubuntu and want to use multiple ssh keys to connect different serves. I have tried some different method but unluckily they have failed. How can I use multiple ssh keys?
Ssh config resides in .ssh/config file in user home directory. The magic is here.
ssh配置位于用户主目录中的.ssh / config文件中。 魔术在这里。
Host cen1 cen1.example.com
HostName cen1.example.com
IdentityFile ~/.ssh/cen1_rsa
User root
Host ubu1 ubu1.example.org
HostName ubu1.example.org
IdentityFile ~/.ssh/ubu1_rsa
User ismail
Hostname cen1.example.com is the hostname of the remote system. While connecting to this system with IdentityFile ~/.ssh/cen1_rsa configuration makes to use cen1_rsa as key.
This is usefull alternative for key usage too. We want to use multiple keys for same host. As we know ssh is tries related keys for hosts in sequence. We can define new keys with Identity configuration like below
Linux popular command cp is used to copy files and folders. In this tutorial we will look different usage types of cp command.
Linux常用命令cp用于复制文件和文件夹。 在本教程中,我们将介绍cp命令的不同用法类型。
句法 (Syntax)
Syntax of cp command is like below.
cp命令的语法如下。
cp [OPTION]… [-T] SOURCE DEST
cp [OPTION]… SOURCE… DIRECTORY
cp [OPTION]… -t DIRECTORY SOURCE…
复制 (Copy)
We will just copy our source file to the destination file.
我们将只将源文件复制到目标文件。
$ ls
cat test
$ cp cat cat2
$ ls
cat cat2 test
We have copied our source file cat into new file cat2
我们已经将源文件cat复制到了新文件cat2中
$ cp cat cat2 test/
$ ls test/
cat cat2 ismail
We have copied cat and cat2 files into the test directory
我们已将cat和cat2文件复制到测试目录中
复制文件并重新命名(Copy File and Give New Name)
While copying the source file name is used as destination filename. If we need to rename newly created/copied file. We have to explicitly specify new name like below.
While copying if we do not want to change modification data, time, access list and associated information about file we can use -p flag
在复制时,如果我们不想更改修改数据,时间,访问列表以及有关文件的相关信息,可以使用-p标志
$ls-l
total0
drwxr-xr-x2rootroot27Kas401:59bulk
-rw-r–r–1rootroot0Kas401:55cat
-rw-r–r–1rootroot0Kas401:55cat2
drwxr-xr-x3rootroot40Kas401:45test
$cp-pcat2cat3
$ls-l
total0
drwxr-xr-x2rootroot27Kas401:59bulk
-rw-r–r–1rootroot0Kas401:55cat
-rw-r–r–1rootroot0Kas401:55cat2
-rw-r–r–1rootroot0Kas401:55cat3
drwxr-xr-x3rootroot40Kas401:45test
复制多个文件 (Copying Multiple Files)
Sometimes we need to copy all files in a given path to the other path. In these situations we can use glob * which is provided by Linux bash. This will copy all contents to the given new path. In this example we will copy all files in this current working directory to the new path named new/ . We can also specify full path like /home/poftut .
Normally cp command copies only files in the current directory. If we have files and folders to copy cp command do not copies sub files and directories. We can enable recursive copy with -r option. This will copy all sub files and folders in given path.
By default cp command will overwrite same files on the destination path. If we are working in a critical folder we can avoid overwriting with -i . It will ask question is destination has same file or folder.
Symbolic links are used to bind differents paths. Normally cp command do not process the symbolic link contents and do not copy. We can enable copying symbolic link contents with -s option.
cp command can be used create hardlinks. Hard Link is link where source and destination files shares same data. Any change one of them will affect all source and destination file. We will provide -l which is used create hardlinks instead of copying them.
We can also use cp to create Soft Links. Soft links provides links to the source file and only source file change will affect all soft links.
我们还可以使用cp创建软链接。 软链接提供了到源文件的链接,只有更改源文件才会影响所有软链接。
$ cp -s /mnt/d /opt/bak
仅复制较新和不存在的文件 (Copy Only Newer and Unexisting Files)
This feature can be used to copy only files those are newer in the source and unexisting files. This is very useful for backup or sync purposes. We will use -u option for this feature.
We can strictly prevent overwriting files in the destination. We will use n option in order to no clobber.
我们可以严格防止覆盖目标文件。 我们将使用n选项以消除混乱。
$ cp -n /mnt/d /opt/bak
保留所有文件属性 (Preserve All File Attributes)
Files and folders have some file system and operating system related attributes. While copying some of them are changed according to the destination path. We can preserve these attributes with --preserve=all option like below.
2020年1月12日 上午5:38
发件人 Apple
• 1. 1 Safety: Objectionable Content
• 1. 2 Safety: User Generated Content
• 4. 8 Design: Sign in with Apple
Guideline 1.1 – Safety – Objectionable Content
Your app includes content that many users would find objectionable and offensive. Specifically, your app encourages or facilitates compensated dating or companionship.
Guideline 5.0 – Legal
Additionally, your app contains content – or facilitates, enables, and encourages an activity – that is not legal in all of the locations where the app is available.
Next Steps
We encourage you to review your app concept and evaluate whether you can incorporate different content and features to bring it into compliance with the App Store Review Guidelines.
Guideline 1.2 – Safety – User Generated Content
Your app enables the display of user-generated content but does not have the proper precautions in place.
Next Steps
To resolve this issue, please revise your app to implement all of the following precautions:
– Require that users agree to terms (EULA) and these terms must make it clear that there is no tolerance for objectionable content or abusive users
– A method for filtering objectionable content
– A mechanism for users to flag objectionable content
– A mechanism for users to block abusive users
– The developer must act on objectionable content reports within 24 hours by removing the content and ejecting the user who provided the offending content
Guideline 4.8 – Design – Sign in with Apple
We noticed that your app uses a third-party login service but does not offer Sign in with Apple.
Next Steps
To resolve this issue, please revise your app to offer Sign in with Apple as an equivalent login option.
Resources
To learn more, see the Sign in with Apple Overview.
App 审核拒*原因
2021年1月8日 上午4:06
发件人 Apple
4. Design: Preamble
4. 2 Design: Minimum Functionality
4. 8 Design: Sign in with Apple
Guideline 4.0 – Design
Your app offers Sign in with Apple as a login option but does not use the appropriate Sign in with Apple button design, placement, and/or user interface elements. Specifically:
Specifically, the Sign in with Apple button should not have text under it.
Next Steps
Please revise the Sign in with Apple buttons in your app so that they are compliant with the App Store Review Guidelines and the Sign in With Apple Human Interface Guidelines.
Resources
For information on implementing Sign in with Apple in your app:
– Review Displaying Sign in with Apple Buttons if your sign in process happens in a browser.
– Review the Sign in with Apple Human Interface Guidelines for an overview of design and formatting recommendations for Sign in with Apple.
Guideline 4.2.3 – Design – Minimum Functionality
We were required to install the WeChat app before we could log in via WeChat. Users should be able to log in with WeChat and access their accounts without having to install any additional apps.
Next Steps
If you would like to offer authentication through WeChat, please use a mechanism that allows users to log in with WeChat from within your app without first having to install an additional app.
We recommend implementing the Safari View Controller API to display web content within your app. The Safari View Controller allows the display of a URL and inspection of the certificate from an embedded browser in an app so that customers can verify the webpage URL and SSL certificate to confirm they are entering their sign in credentials into a legitimate page.
Resources
For additional information on the Safari View Controller API, please review the What’s New in Safari webpage.
Please see attached screenshot for details.
Bug Fix Submissions
If this is a bug fix submission and you’d like to have it approved at this time, reply to this message in Resolution Center to let us know. You do not need to resubmit your app for us to proceed.
Alternatively, if you’d like to resolve these issues now, please feel free to resubmit. Let us know if you have any questions about the issues we found in our review.
You may appeal your app rejection if you believe this decision was made incorrectly. We also invite you to provide feedback on our review guidelines.
Guideline 4.8 – Design – Sign in with Apple
We noticed that your app uses a third-party login service but does not offer Sign in with Apple.
Next Steps
To resolve this issue, please revise your app to offer Sign in with Apple as an equivalent login option.
Resources
To learn more, see the Sign in with Apple Overview.
Please see attached screenshots for details.